Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: open a socket and print from stdin....i think

by hsinclai (Deacon)
on Oct 05, 2004 at 23:38 UTC ( #396821=note: print w/replies, xml ) Need Help??


in reply to Re^2: open a socket and print from stdin....i think
in thread open a socket and print from stdin....i think

Hm.. I think all who mentioned LWP understood the OP to intend to mean
open a socket to a remote server in order to execute the "command" found in a file

stevenrh ?

  • Comment on Re^3: open a socket and print from stdin....i think

Replies are listed 'Best First'.
Re^4: open a socket and print from stdin....i think
by rvosa (Curate) on Oct 06, 2004 at 07:13 UTC
    On second thought, I think that's what it meant too. Oops.
Re^4: open a socket and print from stdin....i think
by stevenrh (Beadle) on Oct 06, 2004 at 13:36 UTC
    Yes. I have a list of links (with session ID, etc) i need to hit on a website. Contrary to my first post, I actually need to issue the POST command.
    example..I can:

    nc -vvv website.org 80

    and then put in my command:

    POST http://website.org/action2?sessionid /HTTP/1.0

    then i hit return a few times...and i get the html output.
    BUT
    as most have pointed out, I think LWP is the easiest, and best way, especially for me..

    also note, the "http://website.org/action2?sessionid" is coming from an array, because it's a bunch of links in a file.

      In that case LWP still serves you well, as it is easy to change the method using get() head() or post()...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://396821]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (1)
As of 2023-09-24 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?