in reply to Re: CGI simple but frustrating fault
in thread CGI simple but frustrating fault

Dear all,

Thanks you for your assistance in this matter and yes, it was a case of reorganising the sequence of statements.

HOWEVER, the most salient piece of advice that I came across was on another posting elsewhere (sorry, haven't got the link) where it was mentioned that "use CGI" causes all sorts of problems with the POST method and effectively clears the POST buffer before it is referenced. The workaround is to check the buffer via the ENV statements BEFORE implementing the "use CGI" statement. This is now how I do the checks which allow some progress for me. Again, many thanks for the advice and observations

regards, ADB

Replies are listed 'Best First'.
Re^3: CGI simple but frustrating fault
by hippo (Archbishop) on Mar 12, 2025 at 13:37 UTC
    another posting elsewhere (sorry, haven't got the link) where it was mentioned that "use CGI" causes all sorts of problems with the POST method

    That has not been my experience. CGI.pm has caused me a grand total of zero problems with POST requests in the quarter century or so that I have used it. Perhaps if you were to provide an SSCCE to demonstrate, someone here could steer you right.

    CGI.pm has its flaws but it certainly beats trying to parse parameters or uploaded files by hand from first principles every time.


    🦛

Re^3: CGI simple but frustrating fault
by marto (Cardinal) on Mar 12, 2025 at 13:56 UTC

    I've literally never seen this happen, nor have I seen anyone suggest this course of action. You've posted code your aren't running, you've not posted a self contained example to replicate the issues. How do I post a question effectively?.