Export to GitHub

contactlistimporter - issue #6

how to pass proxy server information


Posted on Jun 18, 2008 by Happy Camel

What steps will reproduce the problem? 1. unable to pass proxy server host,port,usernamename,password 2. 3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Attachments

Comment #1

Posted on Jun 24, 2008 by Happy Panda

good point, i think a solution is in the httpclient package.. i will look into this issue

Comment #2

Posted on Jun 24, 2008 by Happy Panda

(No comment was entered for this change.)

Comment #3

Posted on Sep 29, 2008 by Happy Panda

Sorry i did not found any time to investigate into this problem. Maybe you already have found a solution?

Comment #4

Posted on Oct 13, 2008 by Quick Cat

Hello, Here is doc : http://java.sun.com/j2se/1.5.0/docs/guide/net/proxies.html Sample: System.setProperty("http.proxyHost", "XXX.XXX.XXX.XXX"); System.setProperty("http.proxyPort", "8080");

Comment #5

Posted on Oct 13, 2008 by Happy Panda

So the solution for this problem is simply calling the System.setProperty correctly? Off course this most be done before a contractimporter is used.

Like this:

String host="yourHost"; String port="yourPort";

System.setProperty("http.proxyHost", host); System.setPropery("http.proxyPort", port);

and for https (which is used by some importers):

System.setProperty("https.proxyHost", host); System.setPropery("https.proxyPort", port);

Can somebody confirm this?

Comment #6

Posted on Jan 7, 2009 by Happy Panda

Nobody confirmed but i think it should work. Marking this as done

Status: Done

Labels:
Type-Defect Priority-Medium