From: <le...@le...> - 2014-07-04 14:19:02
|
Hi, Using HtmlUnit for Java, API version 2.15. Setting Proxy with: WebClient webClient = new WebClient(BrowserVersion.CHROME, proxyIP, proxyPort); Proxy works fine, get’s correct IP when getting response from http://ipecho.net/plain If I try to get response from any URL with https://, I get 403 forbidden error. Using same proxy with a browser to same https:// URL works fine. Error when getPage() using https:// and proxy: -------------------------------------------------------------------- Jul 04, 2014 8:47:19 PM com.gargoylesoftware.htmlunit.WebClient printContentIfNecessary INFO: statusCode=[403] contentType=[text/html] Jul 04, 2014 8:47:19 PM com.gargoylesoftware.htmlunit.WebClient printContentIfNecessary INFO: <HTML><HEAD> <TITLE>Access Denied</TITLE> </HEAD> <BODY> <FONT face="Helvetica"> etc, etc... -------------------------------------------------------------------- Any ideas are appreciated, loving HtmlUnit so far. -Ole |