Advertisement

04.08.2008 at 02:25PM PDT, ID: 23306365
[x]
Attachment Details

Need help configuring proxy for Java URL connection.

Asked by Madhu_A in Java Programming Language, J2EE, Java Standard Edition

Tags: Sun, Java, 1.4, URL Connection Proxy, Java

My company has firewall setting. So I am trying to set the proxy manually using:

      System.getProperties().put("proxySet", "true");
      System.getProperties().put("proxyHost", "someproxy.com/....");
      System.getProperties().put("proxyPort", "8080");
         
      System.getProperties().put("socksProxySet","true");          
      System.getProperties().put("socksProxyHost","someproxy.com/...");
      System.getProperties().put("socksProxyPort","8080");

But the someproxy is what I am not sure of. I tried to look up the proxy from my browsers but both are configured to select Automatic Proxy configuration from a url which includes a port number and few paramaters (http://someProxycom:8080/array.dll?Get.Routing.Script)
. I tried to hit the proxy in a browser and it returns me a .DLL file.

Please if you know let me know how to get around this issue as my URL connection fails inspite of using the proxy.
Error:
java.security.PrivilegedActionException: java.net.UnknownHostException: http://someProxycom:8080/array.dll?Get.Routing.ScriptStart Free Trial
 
Loading Advertisement...
 
[+][-]04.08.2008 at 02:28PM PDT, ID: 21309833

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.08.2008 at 02:28PM PDT, ID: 21309836

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 03:22PM PDT, ID: 21310187

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 03:42PM PDT, ID: 21310287

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 04:09PM PDT, ID: 21310454

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.08.2008 at 04:59PM PDT, ID: 21310729

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 07:54PM PDT, ID: 21311509

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Programming Language, J2EE, Java Standard Edition
Tags: Sun, Java, 1.4, URL Connection Proxy, Java
Sign Up Now!
Solution Provided By: gnoon
Participating Experts: 4
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628