You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Kaufmann, Scott" <Sc...@vignette.com> on 2003/11/10 23:07:15 UTC

500 Server Error from IIS 4.0 with large Content-Length

I'm using 2.0-rc2 of http client to mimic a form based application.
Everything works fine until the Content-Length of my post gets above ~45K.
Then I get an IIS 4.0 genereated 500 Server Error with the response body
reading:
 
<html><head><title>Error</title></head><body>Not enough storage is available
to complete this operation. </body></html>
 
However, if I use the GUI based form to post the same content from IE, it
works without problems.  Any ideas?
 
Thanks,
Scott

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


Re: 500 Server Error from IIS 4.0 with large Content-Length

Posted by Michael Becke <be...@u.washington.edu>.
Hi Scott,

If you are performing a file upload, the browser is probably using a  
multipart post.  HttpClient supports multipart posts.  Please take a  
look at  
<http://jakarta.apache.org/commons/httpclient/methods/ 
multipartpost.html> and  
<http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/ 
examples/?only_with_tag=HTTPCLIENT_2_0_BRANCH> for some examples.

Mike

On Nov 10, 2003, at 5:07 PM, Kaufmann, Scott wrote:

> I'm using 2.0-rc2 of http client to mimic a form based application.
> Everything works fine until the Content-Length of my post gets above  
> ~45K.
> Then I get an IIS 4.0 genereated 500 Server Error with the response  
> body
> reading:
>
> <html><head><title>Error</title></head><body>Not enough storage is  
> available
> to complete this operation. </body></html>
>
> However, if I use the GUI based form to post the same content from IE,  
> it
> works without problems.  Any ideas?
>
> Thanks,
> Scott
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:  
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:  
> commons-httpclient-dev-help@jakarta.apache.org
>


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


Re: 500 Server Error from IIS 4.0 with large Content-Length

Posted by Ortwin Glück <or...@nose.ch>.

Kaufmann, Scott wrote:

> I'm using 2.0-rc2 of http client to mimic a form based application.
> Everything works fine until the Content-Length of my post gets above ~45K.
> Then I get an IIS 4.0 genereated 500 Server Error with the response body
> reading:
>  
> <html><head><title>Error</title></head><body>Not enough storage is available
> to complete this operation. </body></html>
>  
> However, if I use the GUI based form to post the same content from IE, it
> works without problems.  Any ideas?

Are you setting the content length on the request? If not, the request 
is sent using chunked transfer encoding. The server may have 
restrictions on the maximum size of such requests.

Are you using the 100-Continue handshake? Maybe the server is happier 
with that.

just ideas

Odi


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