You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this project is still maintained, try asking.
I have configured a proxy with authentication in my android project.
There are two options to achieve
extends SimpleMiddleware, and add Proxy-Authorization in the onRequest function.
Call addHeader [Proxy-Authorization] in AsyncHttpRequest.
Check the http message through tcpdump, it tries to connect to the target proxy, but it does not carry the [Proxy-Authorization] I added.
I don't know if I used it wrong, attach a piece of code:
If I configure this parameter in the okhttp framework, I can successfully connect. So I think there is nothing wrong with the parameters of the header.
I checked the code of the AsyncHttp framework, I think the default does not support Proxy-Auth, so I want to manually add the http header, but it is invalid, if anyone has a suitable solution, please help me.
The text was updated successfully, but these errors were encountered:
In other words, the header I added will be used after the proxy is forwarded, not when the proxy is connected. I think it does not support the proxy with authentication, right?
I'm not sure if this project is still maintained, try asking.
I have configured a proxy with authentication in my android project.
There are two options to achieve
Check the http message through tcpdump, it tries to connect to the target proxy, but it does not carry the [Proxy-Authorization] I added.
I don't know if I used it wrong, attach a piece of code:
If I configure this parameter in the okhttp framework, I can successfully connect. So I think there is nothing wrong with the parameters of the header.
I checked the code of the AsyncHttp framework, I think the default does not support Proxy-Auth, so I want to manually add the http header, but it is invalid, if anyone has a suitable solution, please help me.
The text was updated successfully, but these errors were encountered: