-
Notifications
You must be signed in to change notification settings - Fork 28
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
PUT request just quits #12
Comments
Hi @patrikhermansson, thanks for reporting this. What version of node are you on and would it be possible for you provide the code that fails or a test case? |
Hi! I've tested on node 6.0.0 as well as 4.4.4 and with different kind of proxy set ups so I don't think the problem lies there. |
I'm also experiencing something similar. This is likely a combination of server and socks5-https-client issue because I can at the same time test:
P.S. The difficult part here is that I do not have access to the server-x... |
Found the problem, maybe it's a different thing. Doesn't seem to be PUT request specific. It seems to be related to the way host/ports are encoded in the socks client. More specifically you can see here how they are passed on from the options like this: However it is quite idiomatic to use url parse to create opts for requests, but as of currently something like this would fail..:
I would propose that SocksClient#createConnection should default to using opts.hostname and if that's not set then use opts.host, but in that case split it with ":" and only take first part to be sure it really is just the host. This is easy to fix, but should it be handled in the socks5-https-client and socks5-http-client: |
I created this pr about it in socks5-client: |
Thank you for your work on this, @timolehto. I've improved the handling of options.host in socks5-client. You should be able to run an |
Hi,
I'm proxying a PUT request via Tor using socks and unfortunately it always fails if the content is larger than a 100-200 kilobytes, without any message or error. I just get the first part of the request back and then it quits. It works like it should if i don't proxy. What could be the cause of this?
The text was updated successfully, but these errors were encountered: