Talroot has asked for the wisdom of the Perl Monks concerning the following question:
The simple script on the server side is the same in both files:D:\>curl https://localhost/debug.pl -H "Token: 3cc8bbeb" -X POST -F Te +st=Test $VAR1 = 'HTTP_ACCEPT'; $VAR2 = 'HTTP_USER_AGENT'; $VAR3 = 'HTTP_HOST'; $VAR4 = 'HTTP_CONTENT_TYPE'; $VAR5 = 'HTTP_TOKEN'; $VAR6 = 'HTTP_CONTENT_LENGTH'; $VAR7 = 'HTTP_EXPECT'; D:\>curl https://localhost/debug.plex -H "Token: 3cc8bbeb" -X POST -F +Test=Test $VAR1 = 'HTTP_USER_AGENT';
use CGI qw(:standard); use Data::Dumper; my $session = CGI->new(); print "HTTP/1.1 200 OK\n\n"; print Dumper($session->http());
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PerlEx and HTTP request headers
by marto (Cardinal) on Jan 15, 2020 at 07:46 UTC | |
by Anonymous Monk on Jan 15, 2020 at 08:50 UTC | |
by marto (Cardinal) on Jan 15, 2020 at 09:51 UTC | |
by 1nickt (Canon) on Jan 15, 2020 at 15:27 UTC | |
by hippo (Archbishop) on Jan 15, 2020 at 15:33 UTC | |
by marto (Cardinal) on Jan 15, 2020 at 15:33 UTC | |
|
Re: PerlEx and HTTP request headers (ActiveState ActivePerl discontinued)
by Anonymous Monk on Jan 15, 2020 at 06:18 UTC | |
|
Re: PerlEx and HTTP request headers
by Anonymous Monk on Jan 15, 2020 at 08:11 UTC | |
by Anonymous Monk on Jan 15, 2020 at 08:28 UTC | |
|