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?