hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: java.io.IOException: Bad chunk size??
Date Wed, 07 Nov 2007 18:25:29 GMT
AlliumPorrum wrote:
> You were exactly right, headers look like this:
> 
> Server: Sun-Java-System/Application-Server
> Date: Wed, 07 Nov 2007 17:44:10 GMT
> Content-Type: text/html; ISO-8859-1;charset=ISO-8859-1
> X-powered-by: Servlet/2.4
> Transfer-Encoding: chunked
> 200 OK
> 
> So, the server really claims to use "chunked" messages. But the question now
> is; how can I solve this problem in the HTTP client side, because the server
> isn't made by me??
> 

Simply use HTTP/1.0. A well-behaved HTTP/1.1 server will not use 
chunk-coding when talking to a HTTP/1.0 client.

Hope this helps

Oleg



> Roland Weber wrote:
>> Looks like the server claims to send a chunked message,
>> but then sends plain text without chunk information.
>> Check what value the Transfer-Encoding header of the
>> response has. If that says "chunked", but the server
>> doesn't chunk-encode the response, you'll get that kind
>> of exception.
>>
>> hope that helps,
>>   Roland
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>>
>>
>>
> 


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


Mime
View raw message