xpro
Regular Member
- Jan 21, 2009
- 442
- 24
I've decided to give HTMLUnit a try since its supposed to support Javascript, I've decided to make a Hushmail account creator with it as I know Hushmail needs JS in order to work. What I'm stuck at now is dealing with the captcha. Hushmail uses one URL for captcha.
https://www.hushmail.com/signup/turingimage?hush_domain=hushmail.com
I looked at this in Fiddler and whenever that page is visited cookies are placed in the browser. So I'm thinking all I need to do is go to that page with HTTPUnit so it can get its cookies and the image itself.
webClient.getPage("https://www.hushmail.com/signup/turingimage?hush_domain=hushmail.com");
I Googled this but I can't find a way to actually save that onto my hard disk. Any idea how to save that image and at the same time get the cookies the page responses with?
https://www.hushmail.com/signup/turingimage?hush_domain=hushmail.com
I looked at this in Fiddler and whenever that page is visited cookies are placed in the browser. So I'm thinking all I need to do is go to that page with HTTPUnit so it can get its cookies and the image itself.
webClient.getPage("https://www.hushmail.com/signup/turingimage?hush_domain=hushmail.com");
I Googled this but I can't find a way to actually save that onto my hard disk. Any idea how to save that image and at the same time get the cookies the page responses with?