The first couple versions of `max` read the file into a scalar
then back out to the file with two sequential open operations.
However with larger files, I figured this could be problematic.
I've attempted to correct this below and welcome people's
comments on my success or failure. T
bject: too many headers from CGI script (max 200)
Hello, I keep receiving the following error message, but I have not found
any information on the net as to what exactly this error means or how to
correct it:
[04/Jul/2002:08:53:13] failure ( 836): for host 172.21.xxx.xxx trying to
GET /cgi-bin/temp
John,
are you able to dump the total output (including headers) for this CGI?
joel
-Original Message-
From: John Pitchko [mailto:[EMAIL PROTECTED]]
Sent: 04 July 2002 15:56
To: [EMAIL PROTECTED]
Subject: too many headers from CGI script (max 200)
Hello, I keep receiving the following
program
/appl/webdocs/cgi-bin/template.cgi did not produce a valid header (too many headers
from CGI script (max 200))
Any suggestions?
John Pitchko
Data Services
Saskatchewan Government Insurance
Curtis Poe wrote:
: That will only give the approximate filesize. $ENV{CONTENT_LENGTH} is the total
:size of the
: entity body. With 'multipart/form-data' (the enctype used with file uploading), the
:entity bodies
: size is even larger than normal. The more data sent (besides the file), the
--- Timothy Kimball <[EMAIL PROTECTED]> wrote:
>
> Teresa Raymond wrote:
> : How do I access the file size without making filesize a parameter
> : input by the user?
>
> This should be in the $ENV{CONTENT_LENGTH} variable.
>
> -- tdk
That will only give the approximate filesize. $ENV{CONTENT
Teresa Raymond wrote:
: How do I access the file size without making filesize a parameter
: input by the user?
This should be in the $ENV{CONTENT_LENGTH} variable.
-- tdk
How do I access the file size without making filesize a parameter
input by the user?
>Teresa Raymond wrote:
>: This does not work, there is no error msg, it just doesn't get paid
>: attention to.
>:
>: if ($cgi->param('$filesize')>=$CGI::POST_MAX)
>: { print "Your file is too large to send";
>
Teresa Raymond wrote:
: This does not work, there is no error msg, it just doesn't get paid
: attention to.
:
: if ($cgi->param('$filesize')>=$CGI::POST_MAX)
: { print "Your file is too large to send";
: }
Get rid of the $ in front of filesize. Should just be
if ( $cgi->param('filesize')>=$
This does not work, there is no error msg, it just doesn't get paid
attention to.
if ($cgi->param('$filesize')>=$CGI::POST_MAX)
{ print "Your file is too large to send";
}
*** Teresa Raymond
*** http://www.mariposanet.com
*** [EMAIL PROTECTED]
10 matches
Mail list logo