Switch to Javascript fetch()
input -
Switch to wget
input
#!perl
use strict;
use warnings;
use HTTP::Tiny;
my $ua = HTTP::Tiny->new( 'verify_SSL' => '1' );
my $res = $ua->request(
'GET' => 'https://example.com/',
{
headers => {
'Accept' => '*/*',
'User-Agent' => 'pcurl/1.0',
'Content-Length' => '31',
'Content-Type' => 'application/x-www-form-urlencoded'
},
content => "... contents of /etc/passwd ..."
},
);
__END__
Created from curl command line
curl -X GET -A pcurl/1.0 https://example.com --data-binary @/etc/passwd
These instructions work for Firefox, Google Chrome and maybe also Safari.