I started that, but then realized the real problem wasn't opening the page, which I believe you can do pretty easily in PHP (at least that what's is suggested in the book I have on the language, I haven't gotten too much experience in the language, but it should work along the lines you mentioned).
The bigger problem is how to get the website to recognize the script as coming from you and therefore give you permission to grab the script and answer the challenge. I tried sending cookies with no success. I think you have to open up a session with the script somehow, but I'm not sure how to accomplish that. Maybe I need to actually make the script send the login information and proceed from there. Anyway, fill free to PM me if you make any progress on this one and I'll do likewise.