Re: How to set proxy?
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <652366DEEF97A3438EC2F4669BD66BA5010E7397@msgswbmnmsp31.wellsfargo.com> |
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: [email protected] > [mailto:[email protected]] On > Behalf Of wolverine my > Sent: Monday, September 18, 2006 11:18 AM > To: [email protected] > Subject: [Httpunit-develop] How to set proxy? > > > Hi! > > I try to set proxy to the WebClient (using 1.62): > > WebConversation wc = new WebConversation(); > wc.setProxyServer("localhost", 80); > System.out.println(wc.getProxyHost()); > System.out.println(wc.getProxyPort()); > > However the result is > > null > 0 > > It seem that the setProxyServer is not working correctly?? > > -------------------------------------------------------------- > ----------- > Using Tomcat but need to do more? Need to support web > services, security? Get stuff done quickly with > pre-integrated technology to make your job easier Download > IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057& dat=121642 _______________________________________________ Httpunit-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/httpunit-develop ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642