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

Re: Help Parsing lwp browser request content

by Roy Johnson (Monsignor)
on Mar 13, 2008 at 18:01 UTC ( [id://674037]=note: print w/replies, xml ) Need Help??


in reply to Help Parsing lwp browser request content

A quick and dirty way might be
my $whole_page = $resp0->content; my ($token) = $whole_page =~ /<input[^>]*?value="(.*?)"/;
A more robust solution might be to use WWW::Mechanize and search through the input fields it parses. Or what wfsp said. :)

Caution: Contents may have been coded under pressure.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-03-29 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found