[go: nahoru, domu]

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

Error when passing multiple query string params #93

Closed
stevecreswick opened this issue May 9, 2019 · 2 comments
Closed

Error when passing multiple query string params #93

stevecreswick opened this issue May 9, 2019 · 2 comments

Comments

@stevecreswick
Copy link

I was trying to connect to a websocket using wscat and passing params through the query string. When passing one parameter, this worked successfully. But when trying to pass multiple parameters a connection request was never sent to the websocket.

This worked: wss://websocketurl.com?some_id=1234

This did not work: wss://websocketurl.com?some_id=1234&another_id=5678

Trying to pass multiple params in the query string printed out the following to the console on each subsequent attempt.

[1] 96022
[2] 96063
[3] 96070
[4] 97671
[5] 97674

This looks like maybe an incrementing id coming from wscat and a process id?

I'm not quite sure why that second query param is causing it to not attempt a connection.

Thanks for any help!

@lpinca
Copy link
Member
lpinca commented May 19, 2019

Wrap the in URL in double quotes like this:

wscat -c "wss://websocketurl.com?some_id=1234&another_id=5678"

@lpinca lpinca closed this as completed May 19, 2019
@stevecreswick
Copy link
Author

That worked. Thanks!

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