Re: [Httpunit-develop] How to set proxy?
Brought to you by:
russgold
From: <Geo...@we...> - 2006-09-18 15:33:19
|
HttpUnit proxies work just fine. When you call getProxyHost and getProxyPort, you're actually calling methods in WebClient, not WebConversation. WebConversation seems to make this information available to WebClient only during the span of the request. > -----Original Message----- > From: htt...@li...=20 > [mailto:htt...@li...] On=20 > Behalf Of wolverine my > Sent: Monday, September 18, 2006 11:18 AM > To: htt...@li... > Subject: [Httpunit-develop] How to set proxy? >=20 >=20 > Hi! >=20 > I try to set proxy to the WebClient (using 1.62): >=20 > WebConversation wc =3D new WebConversation(); > wc.setProxyServer("localhost", 80); > System.out.println(wc.getProxyHost()); > System.out.println(wc.getProxyPort()); >=20 > However the result is >=20 > null > 0 >=20 > It seem that the setProxyServer is not working correctly?? >=20 > -------------------------------------------------------------- > ----------- > Using Tomcat but need to do more? Need to support web=20 > services, security? Get stuff done quickly with=20 > pre-integrated technology to make your job easier Download=20 > IBM WebSphere Application Server v.1.0.1 based on Apache=20 > Geronimo=20 > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057& dat=3D121642 _______________________________________________ Httpunit-develop mailing list Htt...@li... https://lists.sourceforge.net/lists/listinfo/httpunit-develop |