• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to connect to a site through proxy server(urgent)  RSS feed

 
Dinesh Jayaraj
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is case sensitive,
props.put("http.proxyHost","192.168.1.1");
props.put("http.proxyPort","80");
(Notice the capital H and P)
Hope this helps
[This message has been edited by Carl Trusiak (edited January 09, 2001).]
I accidently deleted Dinesh's original post, sorry.
He ask why he was unable to connect throuh a proxy using the code
Properties props=System.getProperties();
props.put("http.proxyhost","192.168.0.1");
props.put("http.proxyport","80");
System.setProperties(props);

[This message has been edited by Carl Trusiak (edited January 09, 2001).]
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! Please enlighten me with what you are trying to do..
Tanx
Regds
Gautham Kasinath
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Well I need help on trying to get an applet through a proxy server to contact my server running on port 9090 outside the proxy.
Regds
Gautham Kasinath
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!