Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Help with logging in to a tricky ASP web form with JavaScript using WWW::Mechanize

by OfficeLinebacker (Chaplain)
on Sep 30, 2011 at 22:32 UTC ( #928949=note: print w/ replies, xml ) Need Help??


in reply to Re: Help with logging in to a tricky ASP web form with JavaScript using WWW::Mechanize
in thread Help with logging in to a tricky ASP web form with JavaScript using WWW::Mechanize

Yes, if you read my post again, I'm sure you'll see I used "live http headers," which is a Firefox extension that allows me to examine what POST data my browser sends.


I like computer programming because it's like Legos for the mind.


Comment on Re^2: Help with logging in to a tricky ASP web form with JavaScript using WWW::Mechanize
Re^3: Help with logging in to a tricky ASP web form with JavaScript using WWW::Mechanize
by Corion (Pope) on Sep 30, 2011 at 22:53 UTC

    You will need to replicate all data you see in the HTTP Live Headers, at least as long as submitting the form fails otherwise. You should also include ctl00_ContentPlaceHolder1_ctl00_rcbusertype_ClientState in your request, and also the __EVENTTARGET and other fields that the form has. The Live HTTP Headers should show you all values submitted, and you should also send all those values unless you know better.

      Looks like we cross posted; just want to note that I've never had to even mention the __EVENTTARGET, __EVENTARGUMENT, OR __VIEWSTATE parameters in order to get my programs to work, in my limited experience.

      I like computer programming because it's like Legos for the mind.
        I feel the need to note via followup that later that day, I Mechanized a form where I had to use __EVENTTARGET for the first time!

        I like computer programming because it's like Legos for the mind.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (19)
As of 2014-07-24 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (162 votes), past polls