-
1. Re: Is there some way to process a response from an iframe with JSF/RF?
edilmar Jun 25, 2013 3:20 PM (in response to edilmar)I found the problem: there is a security restriction disabling XSS attacks.
Then, I won't get to process returned data using iframe.
I tried also to use HttpClient or HtmlUnit to process internally the captcha,
save the image in the server HD, and to call the destination form with value
+ captcha (typed in a field manually), without success.
-
2. Re: Is there some way to process a response from an iframe with JSF/RF?
lfryc Jun 26, 2013 3:19 AM (in response to edilmar)Hey Edilmar,
is there any specific reason why to use Captcha from an remote server?
Couldn't you just generate it on your server?
I can imagine Seam's Captcha [1] will work pretty nice with <a4j:mediaOutput /> [2].
[1] http://docs.jboss.org/seam/2.3.0.Final/api/org/jboss/seam/captcha/Captcha.html
[2] http://docs.jboss.org/richfaces/latest_4_X/vdldoc/a4j/mediaOutput.html
-
3. Re: Is there some way to process a response from an iframe with JSF/RF?
edilmar Jun 26, 2013 10:12 AM (in response to lfryc)The problem is... the other site with captcha is not mine, it is a government site, that allows public search of enterprises data (like address, etc), but there is not something like a webservice, to allow programs like mine to search these data automatically.
-
4. Re: Is there some way to process a response from an iframe with JSF/RF?
lfryc Jun 26, 2013 3:01 PM (in response to edilmar)You can use PhantomJSDriver as a close to real implementation of headless browser.
The similar issue is addressed here - that guy is trying to use PhantomJSDRiver from servlet.