aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes Proxy By-Pass Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Proxy By-Pass" Watch "Proxy By-Pass" New topic
Author

Proxy By-Pass

Kevin Wright
Ranch Hand

Joined: Jul 10, 2001
Posts: 38
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

Joined: Apr 20, 2000
Posts: 3252
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

Joined: Jul 10, 2001
Posts: 38
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

Joined: Sep 29, 2002
Posts: 3
# 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.


JOJO PADERES<p>visit:<br />Pinoy Java Users Group -<a href="http://www.pinoyjug.ph" target="_blank" rel="nofollow">http://www.pinoyjug.ph</a><br />IIEE-MIT Chapter - <a href="http://www.iiee-mit.8m.com" target="_blank" rel="nofollow">http://www.iiee-mit.8m.com</a>
Ed Herrera
Greenhorn

Joined: Oct 07, 2002
Posts: 3
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Proxy By-Pass