You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by mu...@apache.org on 2008/10/02 11:12:19 UTC
svn commit: r701047 -
/webservices/commons/trunk/modules/transport/modules/http/src/org/apache/axis2/transport/http/ProxyConfiguration.java
Author: muthulee
Date: Thu Oct 2 02:12:18 2008
New Revision: 701047
URL: http://svn.apache.org/viewvc?rev=701047&view=rev
Log:
Fixing issue Axis2-4050
Modified:
webservices/commons/trunk/modules/transport/modules/http/src/org/apache/axis2/transport/http/ProxyConfiguration.java
Modified: webservices/commons/trunk/modules/transport/modules/http/src/org/apache/axis2/transport/http/ProxyConfiguration.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/http/src/org/apache/axis2/transport/http/ProxyConfiguration.java?rev=701047&r1=701046&r2=701047&view=diff
==============================================================================
--- webservices/commons/trunk/modules/transport/modules/http/src/org/apache/axis2/transport/http/ProxyConfiguration.java (original)
+++ webservices/commons/trunk/modules/transport/modules/http/src/org/apache/axis2/transport/http/ProxyConfiguration.java Thu Oct 2 02:12:18 2008
@@ -195,6 +195,8 @@
throw new AxisFault(ProxyConfiguration.class.getName() +
" Minimum proxy credentials are not set");
}
+
+ httpClient.getParams().setAuthenticationPreemptive(true);
httpClient.getState().setProxyCredentials(AuthScope.ANY, proxyCred);
config.setProxy(this.getProxyHost(), this.getProxyPort());
}