Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: WWW::Mechanize process.

by whakka (Hermit)
on Aug 04, 2009 at 20:54 UTC ( [id://785897]=note: print w/replies, xml ) Need Help??


in reply to WWW::Mechanize process.

I'm very confused reading your question. Is there any other way you could phrase it?

Here's what I can comment about your code:

$ur_1=$mech->get($ur_1);

Calling the get method returns an HTTP::Response object. You can call the methods it provides, but generally it's more convenient call the various "STATUS METHODS" found in the WWW::Mechanize documentation to make sure your GET request was successful.

To see the content of the page, print the return string from the content method to validate your page's output (my $html = $mech->content).

To do a POST, you simply use the post method found in LWP::UserAgent. Since it's the base class for WWW::Mechanize, any method found in LWP::UserAgent can be called by WWW::Mechanize (make sure to read the "overloaded methods" section in the documentation though.)

Log In?
Username:
Password:

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

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

    No recent polls found