`max`

2003-11-09 Thread Shaun Fryer
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

RE: too many headers from CGI script (max 200)

2002-07-04 Thread John Pitchko
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

RE: too many headers from CGI script (max 200)

2002-07-04 Thread Joel Hughes
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

too many headers from CGI script (max 200)

2002-07-04 Thread John Pitchko
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

Re: testing for max size of file

2001-06-18 Thread Timothy Kimball
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

Re: testing for max size of file

2001-06-18 Thread Curtis Poe
--- 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

Re: testing for max size of file

2001-06-18 Thread Timothy Kimball
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

Re: testing for max size of file

2001-06-18 Thread Teresa Raymond
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"; >

Re: testing for max size of file

2001-06-18 Thread Timothy Kimball
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')>=$

testing for max size of file

2001-06-18 Thread Teresa Raymond
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]