Giter Club home page Giter Club logo

Comments (6)

vi avatar vi commented on June 13, 2024 1

How can I use custom headers option in advanced command?

-H should work the same way regardless of whether it is simpler or flexible mode.

from websocat.

vi avatar vi commented on June 13, 2024

What is the Websocat command line in use? I see only the leading part: ws://report-workser-....

The pane on the left suggests you have inserted a number of println!s. If the command line suggests Websocat should output WebSocket message to stdout (the same as println!) then it may deadlock. Better use eprintln! instead of println! for this.

Maybe server started sending headers, but failed to finish it?

You may want to use advanced command line with traffic logging to see what Websocat sends to server and what server sends back to Websocat.

from websocat.

zemelLeong avatar zemelLeong commented on June 13, 2024

Thank you very much. eprintln! is worked. The full command is cargo run -- ws://report-worker-2.noscription.org -H "Origin: https://noscription.org" -H "User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'". How can I use custom headers option in advanced command?

I'm trying to use websocket connect to report-worker-2.noscription.org got 403 forbidden. Is it possible to integrate websocat as a dependency into my project?

from websocat.

zemelLeong avatar zemelLeong commented on June 13, 2024

I can get data using this command:

websocat wss://report-worker-2.noscription.org -H "Origin: https://noscription.org" -H "User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'"

image

but use this command cannot load data:

websocat -t - --ws-c-uri=ws://report-worker-2.noscription.org -H "Origin: https://noscription.org" -H "User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'" --tls-domain=echo.websocket.org ws-c:ssl:log:tcp:echo.websocket.org:443

image

from websocat.

vi avatar vi commented on June 13, 2024

but use this command cannot load data
... tcp:echo.websocket.org:443

What data do you expect from echo.websocket.org? It would just send back the data you have sent to it.

Maybe you meant --tls-domain report-worker-2.noscription.org ws-c:log:ssl:tcp:report-worker-2.noscription.org:443?

from websocat.

zemelLeong avatar zemelLeong commented on June 13, 2024

thank you. This is what i wanted

from websocat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.