in reply to http header
my $browser = LWP::UserAgent->new();
my $header = HTTP::Headers->new(
Content_Type => 'application/json',
'api-key'=>"jhtty657");
#or maybe apikey=>"jhtty657" without the dash?
$url="https://somewhere.com";
$req = HTTP::Request->new( POST, $url, $header);
$req->content($data);
my $response=$browser->request($req);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: http header
by tobyink (Canon) on May 08, 2017 at 08:59 UTC | |
by Anonymous Monk on May 08, 2017 at 17:52 UTC |