Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Proxy By-Pass

 
Kevin Wright
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any ideas on how i can bypass the proxy servers at my company? I can't recognize something as simple as "http://www.cnn.com", or anything like that (i.e., of that commonality).
Thank you.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You probably can't (at least not without the co-operation of your system administrator). But the problem seems to be, rather, that you want use the proxy rather than trying to bypass it (and failing)!
Set the http.proxyHost and http.proxyPort system properties (e.g. by setting them on the java command line: java -Dhttp.proxyHost=foo -Dhttp.proxyPort=bar my.Class). The jdk 1.4 documentation has a list of all networking related properties in docs/guide/net/properties.html.
- Peter
 
Kevin Wright
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, that worked for me...yeah, i really don't care how i deal with the proxies as long as i can get messages out.
Kevin
 
Jojo Paderes
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
# The jdk 1.4 documentation has a list of all
# networking related properties in
# docs/guide/net/properties.html.
Is https.proxyHost and https.proxyPort not supported anymore in Java 1.4? I checked the docs/guide/net/properties.html and didn't find the said properties which are very important when you are accessing https sites through a proxy server.
Currently I'm having difficulties accessing https sites through a proxy server setting. Although I can set the proxy IP address and port using the https.proxyHost and https.proxyPort properties, my client app is receiving error 407 authentication error from the proxy server. Is there a way where I can set the username/password needed for the proxy server authentication? I'm aware that most proxy servers do not parse https streams since this stream is transmitted through SSL.
 
Ed Herrera
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked if your proxy uses some type of authentication? Most proxy servers support basic authentication. if that is your case then I think you can find the answer to your problem at this address
Check this url:
http://forum.java.sun.com/thread.jsp?thread=17039&forum=11&message=41092
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic