Weirdest thing - decided I'd have a go at this mission this morning.
Had to learn to work with images in PHP - interesting and fun. So script connects, logs in, hits the challenge page, goes and gets the image.
Spent a good hour working out the next bit (cut me some slack, had the baby to care for too).
Once I had everything worked out, and had verified that my responses were making sense over and over, I added in the lines to put the solution in the post data and send it. First try, I got an error, but not the one I was expecting - "YOU HAVE ALREADY COMPLETED THIS MISSION".This script couldn't have sent the answer during my tests, because I never added it to the post data. And it's impossible that I would have completed it before - I just learned the necessary skills this morning. Odd.
And I never did figure out how to display the image in my browser after
- Code: Select all
$source = connect($sess,"missions/prog/2/PNG/",$postdata);
$image = imagecreatefromstring($source);
I tried all sorts of function calls, just kept displaying symbol soup. Everything parses fine, I just would have liked to output the image as well as debugging strings.