Article View: borland.public.jbuilder.java.language
Article #15509java.net.URL through a firewall
From: David Sykes
Date: Wed, 02 Jun 1999 00:00
Date: Wed, 02 Jun 1999 00:00
26 lines
1179 bytes
1179 bytes
Hello all, I am sure I am missing something really basic here, but I can't seem to get figure how to setup a URL to get resource from an HTTP server accessed through a proxy server. The documentation and the documents on the JDC mention that this is supported, but there is no example on exactly how to do it. Can someone fill me in? Your help would be greatly appreciated. At present the code would look like: URL url = new URL( "http://www.borland.com" ); url.openConnection(); InputStream in = url.getInputStream(); . . . This doesn't work if I can only access the Internet through a proxy server. Thanks in advance, David Sykes edv consulting
Technical Details
Message-ID:
<7j3e23$iq37@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,173650ac13105855,start X-Google-Attributes: gidf74b3,public From: "David Sykes" <SykesD@edvc.com> Subject: java.net.URL through a firewall Date: 1999/06/02 Message-ID: <7j3e23$iq37@forums.borland.com> X-Deja-AN: 484871417 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.language