in reply to $CGI::POST_MAX question

UPDATE: After looking over perldoc CGI and looking at the code of CGI.pm, I've determined that the default for POST_MAX is no limit to the amount of information.

Since then, I ran some more tests: the success or failure of the post seems to have only to do with the amount of data being sent in the text field. If I do not upload an image, and upload more than approx 4096 bytes of data in the text field, it fails. If I upload less than approx 4096 bytes in the text field, it succeeds, irregardless of image.

I am scouring the web for information about a maximum amount of data for a given name=value pair... possibly a buffer size?

If anyone has anything to offer here, much appreciated. Meanwhile, I'm re-writing this code to offer better debugging and looking at CGI::DebugVars.

FURTHER UPDATE: I've since determined that the amount of data has nothing to do with the failure. I will investigate with various debugging tools and report back. Thx to everyone for your attention.

Chris

Replies are listed 'Best First'.
(crazyinsomniac) Re^2: $CGI::POST_MAX question
by crazyinsomniac (Prior) on Dec 15, 2001 at 03:10 UTC
    Ya know, CGI.pm isn't the only components involved in this transaction. There is this thing called a webserver, and it has all kinds of setting of its own. You might wanna look into those. Also, 4096 seems like a good limit for a GET request (i've seen it on a couple of servers).

    updated: and those tests you're running, they probably won't do any good, since nobody is mentioning which server they're running, or which version of CGI.pm, you guys aren't on the same server ;D, and CGI.pm is pretty dang sturdy.

    updated: I also sugguest the alienhuman goes and reads the RFC for HTTP, and then cracks open CGI.pm. In (crazyinsomniac) Re: A serious security problem with CGI.pm 3.01? I do that the post max limiting myself.

     
    ___crazyinsomniac_______________________________________
    Disclaimer: Don't blame. It came from inside the void

    perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"