Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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 example.foo from port 8080 of localhost get("http://localhost:8080/example.foo");

    am i missing something?

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


    -Waswas
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?

    Abigail

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2021-12-07 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (33 votes). Check out past polls.

    Notices?