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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to