i have a small java program that goes and accesses
a web page. (used the URL class)
the java program works fine, but how do i force it
to use a proxy server. I mean when i run the java
program via the command line it goes and fetches
the http web page as mentioned in the arguments

java test http://www.xyz.com

one can configure one's web client browser to use the
proxy server and all the accesses are routed via the 
proxy server. 
can someone let me know as to how to do i force
my java program to use a proxy server ?

the second problem is about the contents that are
donwloaded. if it is a plain simple page with text and
gif files it is fine. but if the page has some class
files then
these class files cause a lot of exceptions etc as the
contents are being (tried to be interpreted by the
via the command prompt)
Any way this problem is secondary and the first one is
how to route the requests via a proxy server.

thanks
john

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to