in reply to Re: Post vs. Get
in thread Post vs. Get

Can you use CGI.pm to tell whether a parameter was POSTed or GETed? I have seen web sites do this and am just curious.

Dave

Replies are listed 'Best First'.
Re: Re: Gleaning POST or GET
by tomhukins (Curate) on Feb 21, 2001 at 20:18 UTC
    CGI.pm has request_method() which can be used for this.

    If you're just using plain CGI, $ENV{'REQUEST_METHOD'} tells you the same thing.