aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes Java and proxies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Java and proxies" Watch "Java and proxies" New topic
Author

Java and proxies

Alex Almani
Greenhorn

Joined: Jan 08, 2004
Posts: 6
Well, I'm not quite sure if this belongs here but I'll give it a try anyway (as I'm quite new to java).
Basically I want to know if there is a function that will connect to a proxy that I specify.
Thanks.
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937
A proxy for what?
Alex Almani
Greenhorn

Joined: Jan 08, 2004
Posts: 6
Eugene, I'm not sure I know what you are asking. I just have the address of a proxy server (with the port number) and I would like to connect to it and from there go on to access some other urls.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, Alex!
Perhaps the folks in the Sockets and Internet Protocols forum will have some ideas for you. I'm moving this thread there now...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
You might want to try a quick search on this forum for "proxy" and/or other relevant keywords to see if a past conversation might hold the answer for you.
Note that the search page link is at the top right of this page.
[ January 09, 2004: Message edited by: Dirk Schreckmann ]
Vadiraj Deshpande
Ranch Hand

Joined: Aug 16, 2000
Posts: 78
Originally posted by Alex Almani:
Eugene, I'm not sure I know what you are asking. I just have the address of a proxy server (with the port number) and I would like to connect to it and from there go on to access some other urls.

Hi,
To access any other URLs on the Internet passing through a proxy, first you need to tell JVM about your proxy settings. You do that by setting system properties like this:

HTH,
-Vadiraj
Alex Almani
Greenhorn

Joined: Jan 08, 2004
Posts: 6
alright, thank you guys very much
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java and proxies