path | title |
---|---|
/learnings/java_http_clients |
Learnings: Java: HTTP(s) Clients |
The aforementioned solution has one drawback: httpClient adds authorization headers only after receiving 401 response
When OkHttp tries a proxy, and that route fails once, every request after that request will completely bypass the Android system proxy
Source: