No need to write a program:
lwp-request -e http://www.example.com/
will do the same thing.
| [reply] [d/l] |
GET http://www.example.com/
( or not. see the reply. ) | [reply] [d/l] |
| [reply] |
Minor note
Under winXP & AS 5.8.8 (819), and PRIOR to commenting out "debug => 1" OP's code spits out a warning
Unrecognized LWP::UserAgent options: debug at (line ref to "debug => 1")
before proceeding to produce the expected output.
Haven't investigated reason yet, but a very handy snippet, indeed! Thank you, spatterson
| [reply] |
| [reply] [d/l] |