-
Notifications
You must be signed in to change notification settings - Fork 1k
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
QUERY_STRING not returning expected data using windows 64 bit executable #63
Comments
Thanks! |
Can you take a look at REQUEST_URI, does it include "?asfds=foo&bar=loo" or no? |
I checked that with windows 32 bit and binary from website and things work fine with it.... |
Interesting, I'm running native windows 7 but that shouldn't matter. C:\temp\websocketd>websocketd --version C:\temp\websocketd>ver Microsoft Windows [Version 6.1.7601] |
Hah, peg this as a user error. The query string has to be sent via the ws socket for the server to get the data. My example was based off on the query string passed over http to a certain script... Perhaps a small note like "Ensure your querystring is being passed over the websocket if you intend for its values to be readable through this environment variable" would prevent other after-programming tinkering-at-home hackers to do the same mistake as I did. My apologies. |
No worries, glad it was easy to resolve :) |
Only tested against 64 bit websocketd
Create a .cmd file with following:
@echo off
setlocal EnableDelayedExpansion
@echo %PATH%
@echo %QUERY_STRING%
@echo %SERVER_NAME%
@echo %GATEWAY_INTERFACE%
Service with websocketd, use count.html example to connect and display the result.
Use url like for example: file:///C:/temp/websocketd/count.html?asfds=foo&bar=loo
Expected:
CONNECT
MESSAGE: c:...; ...
MESSAGE: asfds=foo&bar=loo
MESSAGE: localhost
MESSAGE: websocketd-CGI/0.1
DISCONNECT
Got:
CONNECT
MESSAGE: c:...; ...
MESSAGE: ECHO is off.
MESSAGE: localhost
MESSAGE: websocketd-CGI/0.1
DISCONNECT
The text was updated successfully, but these errors were encountered: