Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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?
[marto]: in house as in Company network, not internet connected (power stations and the corporate HQs)
[Discipulus]: new Monsignor party! free beverages and pizza for all you monks! and a big thanks for the patience you deserved me during these years
[marto]: congrats Discipulus
[Discipulus]: only 4k points to sundial's level ..;=)
[Corion]: Yay Discipulus ;)
[Corion]: marto: Ah, so this will be training videos etc., cool!
[choroba]: Congratulations!
[marto]: Corion worse, some plant inspection, cameras moving thru pipes
[marto]: Discipulus yeah, just don't adopt his tactics :P
[marto]: the content for the most part is fairly dull, but if they go for it, they can use it for all sorts of video, they have no solution for this at the moment

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2017-07-28 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (425 votes). Check out past polls.