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: getting NoHttpResponseException("The target server failed to respond")
Date Tue, 04 Jan 2011 16:31:56 GMT
On Tue, 2011-01-04 at 17:30 +0200, Ittay Dror wrote:
> It turns out this is because my warmupInput file was empty. The server 
> responded with 100 (continue), but because the file was empty nothing 
> was written to the output stream, so after a while there was a timeout.
> 
> IMHO, this is a bug. Either an empty input should be posted, or I should 
> get a more accurate error ("nothing to post")
> 
> Ittay
> 

The protocol interceptor responsible for generating 'expect:
100-continue' header does not add the header to messages with empty
request bodies [1]. Feel free to doubled-check.

http://hc.apache.org/httpcomponents-core-ga/httpcore/xref/org/apache/http/protocol/RequestExpectContinue.html

Oleg



---------------------------------------------------------------------
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