in reply to Re^4: Automate WebLogin
in thread Automate WebLogin

Your approach differs from any advice you've been given. JE is an alpha release, are you sure you want to continue to ignore the advice you've been give on tried and tested routes and use this?

Replies are listed 'Best First'.
Re^6: Automate WebLogin
by libvenus (Sexton) on Jan 26, 2011 at 15:27 UTC

      I'm not sure what part of my advice you have problems with. I try to make the steps clear, so please tell me what step I didn't explain thoroughly enough:

      Learn what your browser sends, then send that from Perl.

      This is meant to tell you to investigate what data your browser sends to the remote webserver when you click a button. The intention behind is that the remote webserver cannot know whether there is a browser or a Perl script at the other side, so as long as your Perl script sends the same data as a browser, it will never find out.

      For example, using the Live HTTP Headers extension.

      This sentence is to show you a tool that can do the above.

      Or learn Javascript and how it interacts with the HTML DOM, and what the click for a submit button does.

      This sentence is intended to show you the other, more static, approach to scraping. Read (and understand) the Javascript and what it does, and directly replicate that from Perl.

      Or just modify the code to find it out.

      This sentence is to show you a variation on the more static approach. By modifying the Javascript code, you can also maybe find out what it does and what purpose it has.

        Hi Corion - Sorry for the confusion but I was not able to understand the Live HTTP Headers articles.Probably because of the kind of experience I have.I didn't give the second one a try(learning Javascript).Tried the last one and modified the Javascript response i got but got stuck with the click.I would like to follow more on this