From: Vasudevan C. <vco...@gm...> - 2014-08-29 10:17:54
|
Hi, I am calling a URL through HTMLUnit which is returning a JS file having the following lines **************************** var RecaptchaState = { challenge : '03AHJ_Vuu2NVPdOEg-sq2qWRIm-0JBaEYRDOEXtH9H929ItBmsDElumsglx0imTdk6ufalg3qlDngopHhAISeoJVRD___BA7FLk0nJDncaa2jvRWz-ZVXP16nNaLzRBDXr64WRrb1JADKOrLYwOd0T7v0bVNQedMLn_kanJPP7SglKDyQfcfk8RjHCVZh77VVYM7WxY8vTER-L', timeout : 1800, lang : 'en-GB', server : 'http://www.google.com/recaptcha/api/', site : '6Lf1-AQAAAAAAL9EskceOVja5Uh5_yo1FRtb1Q83', error_message : '', programming_error : '', is_incorrect : false, rtl : false} ; document.write('<scr'+'ipt type="text/javascript" s'+'rc="' + RecaptchaState.server + 'js/recaptcha_canary.js"></scr'+'ipt>'); ***************************** I had made a call to wait for 60 seconds using the API immediately after the first request http://www.google.com/recaptcha/api/challenge?k=6Lf1-AQAAAAAAL9EskceOVja5Uh5_yo1FRtb1Q83 ; webClient.waitForBackgroundJavaScript(60000) ; I did not see the request going out of HTMLUnit. The response header from webserver is copied below ************************** HTTP/1.1 200 OK Cache-Control no-cache, no-store, max-age=0, must-revalidate Pragma no-cache Expires Fri, 01 Jan 1990 00:00:00 GMT Date Fri, 29 Aug 2014 10:07:26 GMT Set-Cookie NID=67=oksi5OMloXzJQ23JjKvhwyoMIaGMl_r7gj2IK-NRIg5nFKIadkK2CoveqS3o3SdxJ_dWazFXWIkO5SW55nbCumor63HeCiHk0MgURUcZKzsnGDte55Sm4sGEUI9xdk79;Domain=. google.com;Path=/;Expires=Sat, 28-Feb-2015 10:07:26 GMT;HttpOnly P3P CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info." Content-Type text/javascript X-Content-Type-Options nosniff X-XSS-Protection 1; mode=block Server GSE Alternate-Protocol 80:quic Transfer-Encoding chunked *************************************************************** What could be the reason? Regards Vasu |