-
Notifications
You must be signed in to change notification settings - Fork 527
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
AndroidClientHandler doesn't support proxy servers #2123
Comments
This is the related line of code. This should probably check whether |
Fixes: dotnet#2123 Implement proxy support for the Java HTTP client by "translating" the proxy information specified in `HttpClientHandler.Proxy` to the format accepted and expected by the Java client. Since the translation may involve a DNS lookup, it is performed in a separate task. No caching is attempted in our client code.
Fixes: #2123 Implement proxy support for `AndroidClientHandler` by "translating" the proxy information specified in `HttpClientHandler.Proxy` to the format accepted and expected by the Java client. Since the translation may involve a DNS lookup, it is performed in a separate task. No caching is attempted in our client code.
I know I'm a bit late here, but shouldn't the default behavior (if you just call
|
I totally agree with @dominik-weber and this is what we have implemented in our project in order to be able to debug network calls with Charles Proxy. |
Any update on this guys ? I find it extremely strange that something as basic and 'core' to any network layer implementation is missing and it has been almost 8 years since Xamarin started ! |
The proxy should be used only if the |
@grendello Both See these code examples:
I think the behavior of the different handlers should be consolidated, by default both should use the proxy settings that have been configured system wide. Please see also the documentation for
This conflicts with how you explained above the AndroidClientHandler / AndroidMessageHandler should work. In the mean time, I'm using this code to manually implement support for the default proxy using the
With the following JavaWebProxy class:
For reference, this is how you configure the system wide proxy settings on Android: |
Please add support for HTTP proxy server configuration in AndroidClientHandler :)
The text was updated successfully, but these errors were encountered: