-
Notifications
You must be signed in to change notification settings - Fork 14
Description
See the following p2 issue for background details:
It's not clear (to me) if the proxy needs to be configured by java.net.http.HttpClient.Builder.proxy(ProxySelector) as suggested here:
https://openjdk.org/groups/net/httpclient/intro.html
Note that with org.eclipse.ecf.internal.provider.filetransfer.httpclientjava.Activator.USE_SHARED_CLIENT_DEFAULT being true, I think there is only a singe HttpClient that is shared.
These two fields
which are copied from here:
are not actually used. It's not clear what, if anything, needs to be configured in this regard.
The following implementation detail is clearly incomplete:
Perhaps it would be correctly implemented like this:
Credentials credentials = getCredentials(new AuthScope(getRequestingHost(), getRequestingPort()));
It's possible that if this were fixed, some additional proxy configurations would "just work"...