You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Ilia Lindov <il...@kale-bg.com> on 2009/06/01 08:32:17 UTC

Re: Dealing with invalid/inconsistent response header

Thanks!

Ilia

Oleg Kalnichevski wrote:
> On Mon, May 25, 2009 at 12:09:02AM +0300, Ilia Lindov wrote:
>> Hello,
>>
>> I'm writing a little app with HttpClient-3.1 that requests a url and  
>> receives a simple plain text answer. The problem is that I'm getting
>>
>> 'org.apache.commons.httpclient.ProtocolException: The server  
>> xxx.xxx.xxx.xxx failed to respond with a valid HTTP response'
>>
>> It happens probably because the only header line I get from the server is
>>
>> 'HTTP/1.x 200 OK '
>>
>> Is there some way to configure HttpClient to ignore header inconsistency?
>>
>> Thanks in advance!
>>
>> Ilia
>>
> 
> No such luck with HttpClient 3.x. You will have to upgrade to HttpClient 4.0
> where the default HTTP message parser can be replaced with a custom one without
> having to fork the library.
> 
> Oleg

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