Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: link to post hidden fields

by planetscape (Chancellor)
on Dec 23, 2005 at 02:09 UTC ( [id://518685]=note: print w/replies, xml ) Need Help??


in reply to link to post hidden fields

I'm not 100% sure I understand what you are trying to accomplish, but... My boilerplate advice is this:

1. Use WWW::Mechanize.

2. I would try using a module such as HTTP::Recorder or WWW::Mechanize::Shell to record a successful manual form submission. The output of HTTP::Recorder, for instance, can be "dropped" right into your WWW::Mechanize scripts.

3. Another important tool for finding out what is really happening behind the scenes between server and browser is a protocol analyzer such as Ethereal.

4. Don't forget to view the source of the page you're trying to automate. A number of times, the solution has been as simple as making sure one is not trying to stick 10 characters in a field made for 8, or that one is referring to a control by its name, not its value.

Good luck,

planetscape

Replies are listed 'Best First'.
Re^2: link to post hidden fields
by mdupont (Scribe) on Sep 19, 2009 at 10:53 UTC
    Hi there.
    There are issues with mechanize and ASP::Net.
    You need to pass in the following hidden fields :
    __EVENTTARGET
    __EVENTARGUMENT
    __VIEWSTATE,
    __LASTFOCUS
    see also cpan HTML::TreeBuilderX::ASP_NET.
    
    hope that helps.
    mike
    
    bless(\sub {bless \$this,&$that;},"Cool");

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (9)
As of 2024-04-23 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found