No that is not right either. Because the HostConfiguration is created using
the supplied HostConfiguration in line 389 as you say, the parameters from
the supplied HostConfiguration are used to clone parameters for the new
HostConfiguration, so they should all be same. See HostConfiguration.java
line 126.

Even if I use the Client's HostConfiguration using
client.getHostConfiguration instead of using my own HostConfiguration and
using it in the executeMethod call, the problem remains.

Vikram

> The problem is, that HttpClient creates a new HostConfiguration object
> internally and sets default on that. So your original object is not
> modified. So within HttpClient the host configuration will use the right
> user agent string. But you can not see this from the outside.
>
> This is line 389 in HttpClient.java (HEAD):
>   HostConfiguration methodConfiguration = new
> HostConfiguration(hostConfiguration);
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to