Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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:

$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.)


Comment on Re: WWW::Mechanize process.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2014-12-20 18:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (97 votes), past polls