http-request icon indicating copy to clipboard operation
http-request copied to clipboard

java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required

Open PhamHuyThien opened this issue 5 years ago • 0 comments

Hello everyone I get error 407 when I request to google or other https sites that use basic proxy for example here:

HttpRequest httpRequest = HttpRequest.post ("https://google.com");
httpRequest.useProxy ("proxyhost", 8888);
httpRequest.proxyBasic ("username", "password");
httpRequest.send (param);
System.out.println (httpRequest.body ());

So how to fix? thanks!

PhamHuyThien avatar Oct 22 '20 14:10 PhamHuyThien