Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java and proxies

 
Alex Almani
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A proxy for what?
 
Alex Almani
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
alright, thank you guys very much
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic