You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Anthony DiSante <te...@encodable.com> on 2006/02/10 13:27:44 UTC
[users@httpd] undocumented POST size limit?
Hello,
I'm running Apache 2.0.54 on a Linux system here. Across my LAN, I can
upload a 1.4GB file to it via POST with a CGI script, no problem. But if I
try to upload a 2.1GB file, the upload never starts; the server refuses it.
I checked the server's access log to see what was going on. When the client
was Internet Explorer, the access log shows just a single line:
192.168.1.10 - - [10/Feb/2006:06:58:22 -0500] "POST
/cgi-bin/upload/filechucker.cgi?&serial=1182736... HTTP/1.1" 413 428
"http://192.168.1.5/cgi-bin/upload/filechucker.cgi" "Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
As you can see, the response code is 413, which is "Request Entity Too
Large". And the client receives an error page in the browser.
When the client is Firefox, however, the request is never logged at all, and
no error is sent to the browser -- it just sits there as though you'd never
attempted to start the upload in the first place.
In both cases, though, the upload never even begins. I'm trying to figure
out why this is. The Apache docs mention a LimitRequestBody directive which
would seem to be it, except that it defaults to 0, i.e. unlimited. And even
when I explicitly set it to 0 in my Apache config, I get the same behavior.
Can anyone else confirm this behavior, or report that they actually CAN
upload a file >2GB? Or is there some other setting that could be limiting
the size of POST data?
Thanks,
--
Anthony DiSante
Encodable Industries
http://encodable.com/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] undocumented POST size limit?
Posted by Anthony DiSante <te...@encodable.com>.
The language is Perl. I realize that FTP is the more traditional solution
to this problem, but 1) it's not me who wants to send these massive files,
it's a client of mine (I am the author of the uploader he's using), and 2)
I'd still like to know what the technical limitations of the
protocol/software are for files of this size.
--
Anthony DiSante
Encodable Industries
http://encodable.com/
httpd2@karsites.net wrote:
> What script language are you using to process the uploaded
> file? You may be better off using pure ftp for file uploads
> of that size.
>
> HTH
>
> Keith
>
> In theory, theory and practice are the same;
> In practice they are not.
>
> On Fri, 10 Feb 2006, Anthony DiSante wrote:
>
>> To: users@httpd.apache.org
>> From: Anthony DiSante <te...@encodable.com>
>> Subject: [users@httpd] undocumented POST size limit?
>>
>> Hello,
>>
>> I'm running Apache 2.0.54 on a Linux system here. Across my LAN, I can
>> upload a 1.4GB file to it via POST with a CGI script, no problem. But if
>> I try to upload a 2.1GB file, the upload never starts; the server refuses
>> it.
>>
>> I checked the server's access log to see what was going on. When the
>> client was Internet Explorer, the access log shows just a single line:
>>
>> 192.168.1.10 - - [10/Feb/2006:06:58:22 -0500] "POST
>> /cgi-bin/upload/filechucker.cgi?&serial=1182736... HTTP/1.1" 413 428
>> "http://192.168.1.5/cgi-bin/upload/filechucker.cgi" "Mozilla/4.0
>> (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
>>
>> As you can see, the response code is 413, which is "Request Entity Too
>> Large". And the client receives an error page in the browser.
>>
>> When the client is Firefox, however, the request is never logged at all,
>> and no error is sent to the browser -- it just sits there as though you'd
>> never attempted to start the upload in the first place.
>>
>> In both cases, though, the upload never even begins. I'm trying to figure
>> out why this is. The Apache docs mention a LimitRequestBody directive
>> which would seem to be it, except that it defaults to 0, i.e. unlimited.
>> And even when I explicitly set it to 0 in my Apache config, I get the same
>> behavior.
>>
>> Can anyone else confirm this behavior, or report that they actually CAN
>> upload a file >2GB? Or is there some other setting that could be limiting
>> the size of POST data?
>>
>> Thanks,
>>
>> --
>> Anthony DiSante
>> Encodable Industries
>> http://encodable.com/
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] undocumented POST size limit?
Posted by ht...@karsites.net.
What script language are you using to process the uploaded
file? You may be better off using pure ftp for file uploads
of that size.
HTH
Keith
In theory, theory and practice are the same;
In practice they are not.
On Fri, 10 Feb 2006, Anthony DiSante wrote:
> To: users@httpd.apache.org
> From: Anthony DiSante <te...@encodable.com>
> Subject: [users@httpd] undocumented POST size limit?
>
> Hello,
>
> I'm running Apache 2.0.54 on a Linux system here. Across my LAN, I can
> upload a 1.4GB file to it via POST with a CGI script, no problem. But if
> I try to upload a 2.1GB file, the upload never starts; the server refuses
> it.
>
> I checked the server's access log to see what was going on. When the
> client was Internet Explorer, the access log shows just a single line:
>
> 192.168.1.10 - - [10/Feb/2006:06:58:22 -0500] "POST
> /cgi-bin/upload/filechucker.cgi?&serial=1182736... HTTP/1.1" 413 428
> "http://192.168.1.5/cgi-bin/upload/filechucker.cgi" "Mozilla/4.0
> (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
>
> As you can see, the response code is 413, which is "Request Entity Too
> Large". And the client receives an error page in the browser.
>
> When the client is Firefox, however, the request is never logged at all,
> and no error is sent to the browser -- it just sits there as though you'd
> never attempted to start the upload in the first place.
>
> In both cases, though, the upload never even begins. I'm trying to figure
> out why this is. The Apache docs mention a LimitRequestBody directive
> which would seem to be it, except that it defaults to 0, i.e. unlimited.
> And even when I explicitly set it to 0 in my Apache config, I get the same
> behavior.
>
> Can anyone else confirm this behavior, or report that they actually CAN
> upload a file >2GB? Or is there some other setting that could be limiting
> the size of POST data?
>
> Thanks,
>
> --
> Anthony DiSante
> Encodable Industries
> http://encodable.com/
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] undocumented POST size limit?
Posted by Anthony DiSante <te...@encodable.com>.
Joshua Slive wrote:
>>> I don't believe 2.0 supports >2GB posts, but I think that 2.2 does.
>>> But my guess is you'll also find that neither of your clients properly
>>> supports this.
>> OK, thanks. Do you know of any documentation for either of those assertions?
>
> The apache side is documented here:
> http://httpd.apache.org/docs/2.2/new_features_2_2.html
> (See "Large File Support".)
Ah, I see. Testing 2.2 now.
> The browser assertion is just based on rumour and reported
> lack-of-success on this list.
Hm, OK. So this is sort of OT then, but wouldn't it seem like simply a
matter of using a large-enough datatype to store the size of the file
(specifically use an integer larger than 32 bits)? I don't see what else a
browser would/could really want to do with an about-to-upload file that
would be different for a file <2GB than for one >2GB.
--
Anthony DiSante
Encodable Industries
http://encodable.com/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] undocumented POST size limit?
Posted by Joshua Slive <jo...@slive.ca>.
On 2/10/06, Anthony DiSante <te...@encodable.com> wrote:
> Joshua Slive wrote:
> >> And just to clarify, the server's filesystem is ext3; it does support files
> >> >2GB, i.e.:
> >
> > I don't believe 2.0 supports >2GB posts, but I think that 2.2 does.
> > But my guess is you'll also find that neither of your clients properly
> > supports this.
>
> OK, thanks. Do you know of any documentation for either of those assertions?
The apache side is documented here:
http://httpd.apache.org/docs/2.2/new_features_2_2.html
(See "Large File Support".)
The browser assertion is just based on rumour and reported
lack-of-success on this list.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] undocumented POST size limit?
Posted by Anthony DiSante <te...@encodable.com>.
Joshua Slive wrote:
>> And just to clarify, the server's filesystem is ext3; it does support files
>> >2GB, i.e.:
>
> I don't believe 2.0 supports >2GB posts, but I think that 2.2 does.
> But my guess is you'll also find that neither of your clients properly
> supports this.
OK, thanks. Do you know of any documentation for either of those assertions?
--
Anthony DiSante
Encodable Industries
http://encodable.com/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] undocumented POST size limit?
Posted by Joshua Slive <jo...@slive.ca>.
On 2/10/06, Anthony DiSante <te...@encodable.com> wrote:
> And just to clarify, the server's filesystem is ext3; it does support files
> >2GB, i.e.:
I don't believe 2.0 supports >2GB posts, but I think that 2.2 does.
But my guess is you'll also find that neither of your clients properly
supports this.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] undocumented POST size limit?
Posted by Anthony DiSante <te...@encodable.com>.
Anthony DiSante wrote:
> I'm running Apache 2.0.54 on a Linux system here. Across my LAN, I can
> upload a 1.4GB file to it via POST with a CGI script, no problem. But
> if I try to upload a 2.1GB file, the upload never starts; the server
> refuses it.
>
> I checked the server's access log to see what was going on. When the
> client was Internet Explorer, the access log shows just a single line:
>
> 192.168.1.10 - - [10/Feb/2006:06:58:22 -0500] "POST
> /cgi-bin/upload/filechucker.cgi?&serial=1182736... HTTP/1.1" 413 428
> "http://192.168.1.5/cgi-bin/upload/filechucker.cgi" "Mozilla/4.0
> (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
>
> As you can see, the response code is 413, which is "Request Entity Too
> Large". And the client receives an error page in the browser.
>
> When the client is Firefox, however, the request is never logged at all,
> and no error is sent to the browser -- it just sits there as though
> you'd never attempted to start the upload in the first place.
>
> In both cases, though, the upload never even begins. I'm trying to
> figure out why this is. The Apache docs mention a LimitRequestBody
> directive which would seem to be it, except that it defaults to 0, i.e.
> unlimited. And even when I explicitly set it to 0 in my Apache config,
> I get the same behavior.
>
> Can anyone else confirm this behavior, or report that they actually CAN
> upload a file >2GB? Or is there some other setting that could be
> limiting the size of POST data?
>
And just to clarify, the server's filesystem is ext3; it does support files
>2GB, i.e.:
[server]$ dd if=/dev/zero of=/tmp/file2.2GB.junk bs=512 count=4500000
4500000+0 records in
4500000+0 records out
[server]$ ls -alh /tmp/file2.2GB.junk
-rw-r--r-- 1 me users 2.2G Feb 10 07:36 /tmp/file2.2GB.junk
[server]$ ls -al /tmp/file2.2GB.junk
-rw-r--r-- 1 me users 2304000000 Feb 10 07:36 /tmp/file2.2GB.junk
--
Anthony DiSante
Encodable Industries
http://encodable.com/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org