Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Get & Post

by Gorby (Monk)
on Feb 08, 2004 at 17:36 UTC ( #327478=perlquestion: print w/replies, xml ) Need Help??

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

Hello Wise Monks. Is there a way for me to execut http GET and POST commands using a PERL module? I know LWP:Simple can do that quite efficiently, but what I need is a module that can connect to a port other than port 80, and still do the usual http requests like GET and POST, etc. Can you help me? Thanks in advance. Gorby

Replies are listed 'Best First'.
Re: Get & Post
by thraxil (Prior) on Feb 08, 2004 at 17:55 UTC

    you can still use LWP::Simple. just stick the port number into the URL:

    # request from port 8080 of localhost get("http://localhost:8080/");

    am i missing something?

Re: Get & Post
by waswas-fng (Curate) on Feb 08, 2004 at 17:56 UTC
    LWP takes port encoded URLs, goes to port 8080.

Re: Get & Post
by Abigail-II (Bishop) on Feb 08, 2004 at 17:52 UTC
    LPW comes with utilities called "GET" and "POST". Guess what they do?


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://327478]
Approved by jweed
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2021-11-28 00:01 GMT
Find Nodes?
    Voting Booth?

    No recent polls found