Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

what would be the simplest method for scripting a POST or GET query that would return to a UNIX command line or file? (NOT through a browser such as navigator or explorer).

Replies are listed 'Best First'.
Re: command line output from http query
by DamnDirtyApe (Curate) on May 30, 2002 at 22:44 UTC
    perl -MLWP::Simple -e 'getprint "http://www.perlmonks.org/index.pl?no +de_id=170534"'

    will print your PM node to the console. Is this roughly what you are looking for?


    _______________
    D a m n D i r t y A p e
    Home Node | Email
Re: command line output from http query
by jsprat (Curate) on May 30, 2002 at 22:40 UTC
Re: command line output from http query
by rbc (Curate) on May 30, 2002 at 22:44 UTC
    You could try ...
    $ telnet www.perlmonks.com 80 GET /index.pl
    ... but You will probably want to check out LWP