From: Ahmed A. <asa...@ya...> - 2015-11-03 15:54:09
|
Hi Teryl, You can: - use the same port. - use System.setProperty("javax.net.debug", "all"); - use an intermediate Proxy (between HtmlUnit and your proxy). Something like Squid or Charles. - sniff the traffic by a packet analyzer if you use different machines, WireShark is an example. Hope that helps,Ahmed From: Teryl Taylor <ter...@gm...> To: htm...@li... Sent: Tuesday, November 3, 2015 4:34 PM Subject: Re: [Htmlunit-user] http/https over proxy I should note, that from the proxy, I want to be able to decrypt the https and analyze it before forwarding it on... On Tue, Nov 3, 2015 at 10:25 AM, Teryl Taylor <ter...@gm...> wrote: Hi guys, Does anyone have any experience using HTMLUnit with a proxy? I wrote a custom proxy server to an HTMLUnit content on a single IP address/port pair. This works great for HTTP based websites. But I have a few instances where the requests made are https intermingled with http. And these https request don't seem to be going to the custom proxy, but are getting a 404 response. I haven't been able to figure out yet whether the requests are going to the proxy, or are just going to the internet and getting a 404 back. My question is, how should I set this up? Do I need to open another port on the proxy that specifically handles https? And if so, how do I direct HTMLUnit https to go there, while http goes to the other proxy? Thanks for any information you can provide, Cheers, Teryl |