I have LWP::ConsoleLogger installed after much struggle to get it built within the restrictions of the client site. Sadly it has brought me no new enlightenment. My only though now is that Perl does not like my https_proxy being an http url.
# curl https://google.com/
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset
+=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="https://www.google.se/?gfe_rd=cr&ei=IvWhWPTvI4b67gSTn7ygA
+g">here</A>.
</BODY></HTML>
# 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/Pro
+tocol/http.pm line 47, <DATA> 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/Pro
+tocol/http.pm line 47, <DATA> line 1.
+ |
'---------------------------------------------------------------------
+---------------------------------------------------------------------
+---'
Error GETing https://google.com/: Can't connect to google.com:443 at t
+est.pl line 22.
Thanks for taking the time. I have at least learned a bit more about the web tools available in Perl :)
Cheers, R.
Pereant, qui ante nos nostra dixerunt!
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|