Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Using HTTP::Request::Common to do a GET with form-data?

by Wonko the sane (Deacon)
on Nov 19, 2002 at 03:49 UTC ( [id://214023]=note: print w/replies, xml ) Need Help??


in reply to Using HTTP::Request::Common to do a GET with form-data?

Depending on your needs you may be able to use LWP::Simple.
Makes posting to a form very easy.

perl -MLWP::Simple -ne 'getprint("http://your_site.com/form.cgi?unsubs +cribe=1&who=me" )'

Note though that any form variables that you want to submit to the form will have to be properly encoded.

Modules like URI::Escape can help with that though. :-)

Hope that helps.

Wonko

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found