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

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 ( #928954=note: print w/replies, xml ) Need Help??


in reply to Re^2: 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

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.

  • Comment on Re^3: Help with logging in to a tricky ASP web form with JavaScript using WWW::Mechanize
  • Select or Download Code

Replies are listed 'Best First'.
Re^4: Help with logging in to a tricky ASP web form with JavaScript using WWW::Mechanize
by OfficeLinebacker (Chaplain) on Sep 30, 2011 at 23:00 UTC
    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://928954]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2016-09-30 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (562 votes). Check out past polls.