Re: How to set proxy?
"wolverine my" <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! The network guy claims that my request is not send to the proxy... Is there any logging which we can turn-on to see if the request is going through the proxy? When setting the proxy, we can either pass-in the hostname or the ip address rite? and if we specify the hostname, it must also exist in /etc/hosts? On 9/18/06, [email protected] <[email protected]> wrote: > 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 > _______________________________________________ > Httpunit-develop mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/httpunit-develop > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV