-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
11, 12, 13
-
x86_64
-
windows_10
ADDITIONAL SYSTEM INFORMATION :
all os, jdk 11
A DESCRIPTION OF THE PROBLEM :
New API java.net.http doesn't support SOCKS. I tried sth like:
HttpClient.newBuilder().proxy(new ProxySelector() {
@Override
public List<Proxy> select(URI uri) {
return Arrays.asList(socks);
}
@Override
public void connectFailed(URI uri, SocketAddress sa, IOException ioe) {
System.out.println(socks + ": " + ioe);
}
})
but it goes direct. It doesn't show any error. Maybe add an error that socks is not supported or add socks support, please.
all os, jdk 11
A DESCRIPTION OF THE PROBLEM :
New API java.net.http doesn't support SOCKS. I tried sth like:
HttpClient.newBuilder().proxy(new ProxySelector() {
@Override
public List<Proxy> select(URI uri) {
return Arrays.asList(socks);
}
@Override
public void connectFailed(URI uri, SocketAddress sa, IOException ioe) {
System.out.println(socks + ": " + ioe);
}
})
but it goes direct. It doesn't show any error. Maybe add an error that socks is not supported or add socks support, please.
- duplicates
-
JDK-8214516 Specify that SOCKS is not supported by java.net.HttpClient
- Open