Closed zemelLeong closed 10 months ago
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.
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?
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.
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'"
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
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
?
thank you. This is what i wanted
Hi. I dont know why got block when I try to run this project. That's weird