crimsonknave/juniperncprompt — pull request #1 by bge-kernel-panic (2012-03-13 18:03:41+00:00)
Title: Add support for post-login message

Hello,

In our company's juniper network setup, there's a "post login" message (a legal disclaimer) that gets shown after the initial login request. It is then necessary to re-submit to login.do with a given hidden parameter (named "key") to continue with the actual login request.

The code I added to do this is rather ugly, but it seems to work well.

It may be advisable to grab the disclaimer from the HTML response and try to print it to the screen, but I find it's not needed for my own use :)

Feel free to remove the bunch of commented-out print statements I used while debugging (I wasn't that familiar with elementtree :)