Duplicate :
|
|
Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
With today API, it is not possible to login to the same web site/server through HTTP with different credentials. This is because HttpURLConnection will always use the default Authenticator, which is global. Adding a new HttpURLConnection::setAuthenticator method would help solve this issue. For compatibility reasons, an HttpURLConnection on which no authenticator was explicitly set should continue using the default authenticator.
|