Re: problem with URLConnection behind a firewall
- From: Real Gagnon <realgagnon+usenet@xxxxxxxxxxx>
- Date: Thu, 16 Nov 2006 02:49:08 GMT
"vj" <mr.vaibhavjain@xxxxxxxxx> wrote in news:1163573095.757240.204140
@f16g2000cwb.googlegroups.com:
uc.setRequestProperty("Proxy-Authorization", "Basic " + encoded);
You need to set some System properties since a proxy is used :
Properties systemSettings = System.getProperties();
systemSettings.put("http.proxyHost","proxy.mydomain.local") ;
systemSettings.put("http.proxyPort", "80") ;
see http://www.rgagnon.com/javadetails/java-0085.html
Bye.
--
Real Gagnon from Quebec, Canada
* Looking for Java or PB code examples ? Visit Real's How-to
* http://www.rgagnon.com/howto.html
.
- References:
- Prev by Date: Re: hash two keys to one index
- Next by Date: Re: concurrency, threads and objects
- Previous by thread: Re: problem with URLConnection behind a firewall
- Next by thread: java result set
- Index(es):
Relevant Pages
|