-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Websocket does not support NTLM proxy #1274
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
Comments
Yes, it's supposed to. But NTLM support might not be bullet-proof, as I can't get my hands on such environment. |
Thanks slandelle! |
Do you have any idea how I could easily get a NTLM proxy running (without a Windows host)? |
Hi @slandelle, we hava a NTLM server in internal network for testing. Currently I can not find a NTLM proxy can be reached on the internet. |
Might I ask one more question? WebSocketUpgradeHandler in asynch-http-client requires CONNECT or GET method; According to the information from RFC (https://tools.ietf.org/html/rfc6455), the method of the WEBSOCKET request MUST be GET. So is there a way to use CONNECT for negotiating with NTLM proxy then use GET for WEBSOCKET in asynchttpclient? |
Read 4.1.3, client must perform a CONNECT when connecting through a proxy.
Me neither. Nor a virtual box or docker image. NTLM is an entreprisey thingy, and sadly entreprises tend to rarely share. Except if I can get my hands on an NTLM environment, I won't be able to investigate this myself without a contract. |
Hi slandelle, thanks for the update. |
CONNECT is used for HTTP proxy tunneling, ie HTTS. You use a different path in the code. I don't think the fact that it works now has anything to do with downgrading. |
commit d596056 seems to have broken ntlm proxy. |
Changing
to
fix the problem |
??? Both are absolutely identical!!! |
Ah, ok, there's a second branch that is missing from your code. |
when msg is DefaultHttpContent and not LastHttpContent the channel is closed by the last if else. |
Thanks! |
Wow, that was fast. Thank you! Will this be back ported to the 2.0 branch, and do you know when the next release is going to be? |
No. I don't do backports, and anyway, AHC 2.0 is based on Netty 4.0 which is EOL'ed too.
Maybe today |
…p-client * 'master' of https://github.com/AsyncHttpClient/async-http-client: [maven-release-plugin] prepare for next development iteration [maven-release-plugin] prepare release async-http-client-project-2.5.4 Upgrade netty 4.1.30.Final HttpContentDecompressor is misplaced after upgrading pipeline for HTTP tunnelling, close AsyncHttpClient#1583 Fix regression introduced in d596056, close AsyncHttpClient#1274 [maven-release-plugin] prepare for next development iteration [maven-release-plugin] prepare release async-http-client-project-2.5.3
With latest version (2.1.0-alpha1), As the following codes, it works fine while connectiong to server with http; but it is failed for websocket, it alway returns 501 status code. does asynch-http-client support the proxy with NTML schema?
Scenario 1: connecting www.google.com, connection established
Scenario 2: connecting to websocket, failed. return 501 status code
The text was updated successfully, but these errors were encountered: