in reply to Re: How to check the request is (GET OR POST) in CGI
in thread How to check the request is (GET OR POST) in CGI
This was an interesting thing for me to replicate, working through basic cgi scripts for the first time. What I didn't know as well is that GET uses what comes after the '?' in urls.
-------executing upload 1.env.cgi -------cat uploaded file #!/usr/bin/perl -wT use strict; use CGI qw(:standard); use CGI::Carp qw(warningsToBrowser fatalsToBrowser); print header; print start_html("Environment"); foreach my $key (sort(keys(%ENV))) { print "$key = $ENV{$key}<br>\n"; } print end_html; __END__
link to a cgi script showing envelope with a value after the ?.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to check the request is (GET OR POST) in CGI
by davido (Cardinal) on Sep 25, 2018 at 01:30 UTC |