Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving Response from Websocat on windows OS #242

Open
massaggioit opened this issue May 22, 2024 · 1 comment
Open

Saving Response from Websocat on windows OS #242

massaggioit opened this issue May 22, 2024 · 1 comment

Comments

@massaggioit
Copy link

Hi,

I'm using websocat (to drive chrome with its CDP ) like this from a Windows 11 command prompt CMD (not PowerShell):

echo {"id":1,"method":"Page.navigate","params":{"url":"https://www.example.com"}} | "C:\websocat.exe" --text - ws://localhost:9222/devtools/page/0C2BCF6B5E374C75F45302ACA360CE3A

This works as expected, but I'm having trouble finding a way to save the response. I've tried several methods without success.

I would greatly appreciate it if you could provide an example.

Thank you!

@vi
Copy link
Owner

vi commented May 22, 2024

Maybe try something like ... | websocat.exe ... --one-message > output_file.txt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants