# curl https://google.com/
302 Moved
302 Moved
The document has moved
here.
# perl test.pl
GET https://google.com/
.-----------------+--------------------.
| Request Header | Value |
+-----------------+--------------------+
| Accept-Encoding | gzip |
| User-Agent | WWW-Mechanize/1.83 |
'-----------------+--------------------'
==> 500 Can't connect to google.com:443
.-----------------+-------------------------------.
| Response Header | Value |
+-----------------+-------------------------------+
| Client-Date | Mon, 13 Feb 2017 18:04:23 GMT |
| Client-Warning | Internal response |
| Content-Type | text/plain |
'-----------------+-------------------------------'
.---------------------------------------------------------------------------------------------------------------------------------------------.
| Content |
+---------------------------------------------------------------------------------------------------------------------------------------------+
| Can't connect to google.com:443 |
| |
| Name or service not known at /usr/lib/perl5/site_perl/5.18.2/LWP/Protocol/http.pm line 47, line 1. |
'---------------------------------------------------------------------------------------------------------------------------------------------'
.---------------------------------------------------------------------------------------------------------------------------------------------.
| Text |
+---------------------------------------------------------------------------------------------------------------------------------------------+
| Can't connect to google.com:443 |
| |
| Name or service not known at /usr/lib/perl5/site_perl/5.18.2/LWP/Protocol/http.pm line 47, line 1. |
'---------------------------------------------------------------------------------------------------------------------------------------------'
Error GETing https://google.com/: Can't connect to google.com:443 at test.pl line 22.