Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: CGI.pm POST_MAX not working

by poj (Abbot)
on Jan 19, 2018 at 21:46 UTC ( [id://1207565]=note: print w/replies, xml ) Need Help??


in reply to CGI.pm POST_MAX not working

Do you have  $CGI::POST_MAX = 1024 * 1024 * 20 in /cgi-bin/start_analysis.cgi ?

poj

Replies are listed 'Best First'.
Re^2: CGI.pm POST_MAX not working
by adjuvant (Novice) on Jan 20, 2018 at 23:03 UTC

    Are you kidding me? That was absolutely the solution. For the internet's future reference (and in case anyone besides me is still using CGI), POST_MAX has to be set in the script receiving the POST, not the script sending the POST. I don't know why that wasn't clear, but it absolutely wasn't. The CGI documentation left me with the impression that POST_MAX would prevent a script from submitting a too-large post, not that it would prevent a script from receiving a too-large post.

    Thank you!

      Don't feel bad. Easy and common mistake for early attempts in this area. Note however that the first form/CGI does not send the POST at all; it sends nothing to the second. It presents a form to the browser which gives the browser the parameters that it should POST and where to do it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1207565]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-16 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found