hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florent Georges <li...@fgeorges.org>
Subject HTTP Client 4.0: proxy settings?
Date Wed, 18 Feb 2009 17:55:32 GMT


  I am evaluating the impact of migrating from HTTP Client 3.1
to 4.0, and this is going well so far.  But I couldn't find a
way to set proxy settings.  In 3.1 I do (error management left
for clarity):

    String host = System.getProperty("http.proxyHost");
    String port = System.getProperty("http.proxyPort");
      . setProxy(host, Integer.parseInt(port));

  As an aside question, shouldn't the client take the system
properties http.proxy* and https.proxy* into account?


Florent Georges


To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org

View raw message