-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
How to use SSL proxy with AHC #1907
Comments
What's the error you're getting? |
The request just times out. However, it's not a connectivity issue because as mentioned the curl command works just fine.
If you look at the output below you'll see it's trying to connect to
|
In order to work with proxies, you first need to set With the above instructions, AHC would pick up the proxy from the system properties |
@AshwinPrabhuB The problem is not that AHC is not picking up the proxy settings. I am able to configure it via the code as shown in my original post. The problem is that AHC does not work when an https proxy is configured. |
From my testing:
Seems like someone tried to fix it in this PR – #1795 |
I have an SSL proxy setup which works fine when using curl.
I can't seem to figure out how to configure AHC with a
ProxyServer
instance to do the same. I've tried an older version of AHC and a newer one (see below for configurations). In both cases when I make a request it just hangs.Configuration for 1.7.x:
Configuration for 2.12.x:
The text was updated successfully, but these errors were encountered: