hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ROLWE...@de.ibm.com>
Subject Re: HTTP Version Not Supported Error
Date Fri, 15 Oct 2004 07:19:23 GMT
Hello Nick,

by implementing ...methods.multipart.PartSource, you can supply your
own InputStream. Using HttpMethod.getResponseBodyAsStream(),
you have direct access to the input stream of the response. What more
control do you need?

The problem you report suggests that your version of the post method
somehow fails to synchronize the connection usage. But that is hard to
diagnose if you don't send the modified source.


"Nick Jarvis" <jarvisnicholas@hotmail.com> 
14.10.2004 20:13
Please respond to
"Commons HttpClient Project"


HTTP Version Not Supported Error

I am currently using HttpClient 2.0.2 and trying to create a multi 
file upload.  I have restrictions on the project I can use , therefore I 
using HttpClient MultiThreadedHttpConnectionManager that is connecting to 
the same host and I am using HttpClient PostMethod for the upload.  I am 
trying to use the PostMethod as a subclass and overide the 
function to have more control over the upload.  However, I am getting and 
error reading: 'HTTP Version Not Supported' from the status text for the 
third thread (for the third file that I am trying to upload after the 
previoius two are complete).  The response from the server is not pretty 
either.  I even tried copying the same exact source from the PostMetho 
into a new class but I am still getting this error when running the 
I am noticing that the MultiThreadedHttpConnectionManager defaults to 2 
connections per host, and the manager seems to be blocking my third thread 

until one of the other two complete.  Once one thread is complete and 
unblocks the next thread, I am unable to upload the next file due to this 
server error.  If I increase the connections per host variable, the upload 

after the connections per host limit is returning this message.    If I 
use the PostMethod or MultipartPostMethod, the uploads work fine, but I 
more control over the input stream and the upload.  Could someone please 
advise.  Thank you for your time,

Nick Jarvis

Express yourself instantly with MSN Messenger! Download today - it's FREE! 


To unsubscribe, e-mail: 
For additional commands, e-mail: 

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message