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
HTTP/2 client with SOCKS proxy hangs #2091
Comments
Well I'm also facing the similar kind of issue so posting it here instead of creating another issue. SslContextFactory sslContextFactory = new SslContextFactory();
HttpClient httpClient = new HttpClient(sslContextFactory);
httpClient.start();
Address address = new Address("127.0.0.1",8082);
Socks4Proxy socks4Proxy = new Socks4Proxy(address, true);
proxyConfiguration.getProxies().add(socks4Proxy);
Request request = httpClient.newRequest(
new URI("https://google.com"));
request.method(HttpMethod.GET);
ContentResponse contentResponse = request.send();
System.out.println(contentResponse.getContentAsString()); For the above I'm getting the following error :
Can anyone suggest me how to resolve the issue ??? @roby-rodriguez can you see any error in my code ? because even if I try it by default httpclient constructor , it is giving me the same error .. Fyi : for the proxy server i'm using burp |
Can we please get the DEBUG logs ? |
This issue has been automatically marked as stale because it has been a full year without activit. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has been a full year without activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has been a |
This issue has been automatically marked as stale because it has been a |
I've been playing with the HTTP client lately and I would like to do some web scrapping through tor. The API worked well so far but after adding the proxy configuration the connection hangs - no errors, nothing
If I use
HttpClient
with a default constructor and set no version for the request, the above will work, however it will be HTTP/1.1 -> so the question would be is there something missing in this code or is it because of a missing feature?I've also had a look at #426 which mentions (still) open issue #250 but can't figure out if the problems are related. Any ideas?
The text was updated successfully, but these errors were encountered: