Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: CURL Alternative.

by ikegami (Patriarch)
on Mar 19, 2008 at 05:32 UTC ( [id://674941]=note: print w/replies, xml ) Need Help??


in reply to CURL Alternative.

Perl has a very good HTTP library: LWP. $ua->credentials() can be used to supply the user and passwd. I don't know what -d does, so I can't recommend anything for that.

Replies are listed 'Best First'.
Re^2: CURL Alternative.
by eserte (Deacon) on Mar 19, 2008 at 20:56 UTC
    You can also embed username and password in the URL with LWP::UserAgent, just like in curl.
Re^2: CURL Alternative.
by Anonymous Monk on Mar 19, 2008 at 05:47 UTC
    -d does a POST. The whole thing feeds the request to the HEADER and sends POST Data. The result of that command is in an XML format. Once I have that, I can parse it (TIMTOWTDI).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2026-05-12 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.