Perl HTTPS GET Request

Job ID: 39985165

Budget: £20 – £250 GBP

I’m after a minimal, clearly commented Perl script that performs a single HTTPS GET request to a URL and place the response in a Perl variable, that's all.

Success requires functionality on our server. Server access will be provided for testing, an email required for this.

Perl Programmer Task:

This should be a straight forward simple task for a programmer experienced with Perl HTTPS requests

Full Account access (shared server) will be arranged on acceptance of the quote.

Before starting first check that success is possible, that is the Ace-host.net hosting package is capable of delivering HTTPS data requests, Ace-host.net feel it can.

The current problem is 'get' requests receive an initial HTTP response like 'HTTP::Response=HASH(0x55d883959218)' the HTTPS request processing does not fulfill.

The Ace-host.net hosting Package in place:

cpanel package: Ultra Premium NVMe (shared server) with Meta::Cpan self installable Perl library
Domain: thrishna.uk
Dedicated IP: 162.247.78.93

Produce and test a few simple lines of Perl code to reliably 'get' approved content from

'https://maps.googleapis.com/maps/api/distancematrix/json?...'

and place in a Perl variable eg: $response

An inital Perl Script is ready in place with full request test links in the cgi-bin 'testget.pl'

The json return on the googleapis request in any regular browser is below, this return needs to be placed in the Perl variable: $response


{
"destination_addresses" :
[
"Old St, Upton upon Severn, Worcester WR8 0HW, UK"
],
"origin_addresses" :
[
"Coventry Cl, Tewkesbury GL20 5HR, UK"
],
"rows" :
[
{
"elements" :
[
{
"distance" :
{
"text" : "8.7 mi",
"value" : 14007
},
"duration" :
{
"text" : "18 mins",
"value" : 1067
},
"status" : "OK"
}
]
}
],
"status" : "OK"
}
Related categories: Perl Scripting