in reply to CGI cut off after about 16000 characters

No real idea here, but depending on where you are testing from, it could be an instance of the old 'broken Path-MTU-discovery.'

Basically, if there is a (broken) firewall between your client and the server which is dropping all ICMP packets, one symptom you can see is small transfers working fine but larger transfers failing. (The client TCP tries to determine the optimum packet size by increasing the size until it receives an 'I had to fragment your packet' ICMP message...if this doesn't get back to the sender the data gets discarded :-(

You can try searching networking archives and such or your system documentation. If you can disable path-mtu-discovery on the client and that helps then go and beat up a firewall admin.

Other than that, does the script work fine if you run from the command line? i.e. does perl my_script.pl < form_parameters work OK?

If not, and you can reproduce the problem this way, then all I can suggest is 'perl -d'.

Let us know how you get on.

Replies are listed 'Best First'.
Re: Re: CGI cut off after about 16000 characters
by BrentDax (Hermit) on Mar 28, 2001 at 23:12 UTC
    I don't think it's a firewall thing, as I can type ./envwrapper PATH_INFO '/submit/' './render.pl' > out.txt (envwrapper is a program that sets environment variables based on pairs given to it on the command line, then runs a program) and the cutoff still happens. Are there any known bugs in regular expressions or the print function (or in variable storage, for that matter) in 5.005 that might do this sort of thing?

    =cut
    --Brent Dax

    @HPAJ=split("", "rekcaH lreP rentonA tsuJ"); print reverse @HPAJ; #sucky but who cares?