From: Ahmed A. <asa...@ya...> - 2014-08-20 16:15:38
|
Hi Vasu, Interesting finding. A possibility is that HtmlUnit is faster than FF. The second thing, as you said, request difference, which you could provide more details about. How about testing with HtmlUnit but with IE/Chrome simluation? A remote question: is this case reproducible? Ahmed ________________________________ From: Vasudevan Comandur <vco...@gm...> To: "htm...@li..." <htm...@li...> Sent: Wednesday, August 20, 2014 4:38 PM Subject: [Htmlunit-user] HTMLUnit with Recaptcha service of Google Hi, I am facing a problem connecting to Recaptcha service through HTMLUnit. I did the following. 1. I used FF browser to connect to Recaptcha service using a demo site having the link http://www.patcurtis.com/captcha/recaptcha_demo.php 2. Captcha image will get displayed inside the recaptcha widget. 3. I was pressing the reload current page continuously after the captcha image is displayed. I did not get any error image even after reloading 500 times. I repeated the same exercise through HTMLUnit program. I was getting the captcha image for about 200 times of reload. But after that recaptcha service was throwing an error image. The link of the error image is http://www.gstatic.com/recaptcha/api/img/dos_captcha.jpg. Reloading after the error image throws back the same image page. Is there any reason for such a different behaviour through HTMLUnit?. I was expecting the same behaviour to happen with HTMLUnit as normal browser. Does the order of HTTP request headers matter?. I see the order through charles proxy and see the difference. Any pointers to solve this issue would help me. Looking forward to your reply. Regards Vasu |