hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mugoma Joseph Okomba" <mug...@yengas.com>
Subject Re: Avoiding HTTP Error 301 when using HttpClient 4.x
Date Tue, 08 May 2012 10:34:59 GMT

>>
>>
>
> Post wire logs of both sessions (HC 3.1 and HC 4.1)
>
> Oleg
>

The solution is to set User-Agent header:

 httpClient.getParams().setParameter(AllClientPNames.USER_AGENT,
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)");

See http://stackoverflow.com/a/10470505/1008916

Many thanks for your assistance.

Mugoma.


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


Mime
View raw message