On Thursday 24 July 2008 13:06:27 Patrick Stählin wrote:
>
> Using netcat to listen on port 80 showed that axis is indeed accessing
> localhost:80:
>
> overlord patrick # nc -l -p 80
> POST http://localhost:8081/ HTTP/1.1
Well, this is because http.proxyHost was set to "" (empty string) and this is
regarded as a valid proxy host. I should have recognized this from the URL
specified by as the argument to POST.
Would it hurt to have the line 225 in
org/apache/axis2/transport/http/ProxyConfiguration.java changed:
//From Java Networking Properties
String sp = System.getProperty(HTTP_PROXY_HOST);
- if (param != null || obj != null || sp != null) {
+ if (param != null || obj != null || (sp != null && sp.length() != 0))
{
I wonder who added the empty "http.proxyHost". I've "fixed" this by removing
empty proxy hosts if defined:
String proxyHost = System.getProperty("http.proxyHost");
if(proxyHost != null && proxyHost.length() == 0) {
Properties props = System.getProperties();
props.remove("http.proxyHost");
System.setProperties(props);
}
Patrick
--
futureLAB AG tel: +41 (0)52 260 22 22
Schwalmenackerstr. 4 fax: +41 (0)52 260 22 23
CH-8400 Winterthur e-mail: [EMAIL PROTECTED]
Switzerland mission: delivering tomorrow's applications today
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]