Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Java Prog: Network / Proxy

Reply
Thread Tools

Java Prog: Network / Proxy

 
 
mnml
Guest
Posts: n/a
 
      04-06-2008

Hi there,
I'm using a class to "get" urls: http://pastebin.com/f335278c8
but unfortunately it's not working when I'm behind a proxy,
Could you advise me a good way to add a proxy configuration
in my code?

Regards
 
Reply With Quote
 
 
 
 
mnml
Guest
Posts: n/a
 
      04-06-2008
On Apr 6, 12:31*pm, mnml <(E-Mail Removed)> wrote:
> Hi there,
> I'm using a class to "get" urls:http://pastebin.com/f335278c8
> but unfortunately it's not working when I'm behind a proxy,
> Could you advise me a good way to add a proxy configuration
> in my code?
>
> Regards


I guess I found how:

System.getProperties().put("http.proxyHost", "someProxyURL");
System.getProperties().put("http.proxyPort", "someProxyPort");
System.getProperties().put("http.proxyUser", "someUserName");
System.getProperties().put("http.proxyPassword", "somePassword");
System.getProperties().put("http.proxySet", "true");
 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      04-07-2008
On Sun, 6 Apr 2008 04:31:19 -0700 (PDT), mnml <(E-Mail Removed)>
wrote, quoted or indirectly quoted someone who said :

>I'm using a class to "get" urls: http://pastebin.com/f335278c8
>but unfortunately it's not working when I'm behind a proxy,
>Could you advise me a good way to add a proxy configuration
>in my code?


see http://mindprod.com/jgloss/properties.html#NETWORK
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Proxy pattern and java.lang.reflect.Proxy/InvocationHandler Karsten Wutzke Java 1 08-20-2007 11:05 AM
Facebook Proxy | MySpace Proxy 35085675@qq.com Java 0 08-14-2007 06:35 AM
Inbound Proxy and Outbound Proxy chellappa VOIP 0 04-07-2006 10:58 AM
Press Release: Scalable SIP Proxy and RTP Media Proxy for NAT traversal sales@lanscapecorp.com VOIP 1 01-23-2006 06:32 PM
Help to set up tomcat 4.1.27 behind socks proxy to access database outside the proxy vidy5300 Java 0 06-07-2004 02:23 PM



Advertisments