Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: WWW::Mechanize process.

by whakka (Hermit)
on Aug 04, 2009 at 20:54 UTC ( #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:


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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://785897]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2018-06-20 02:46 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.