Moved discussion to the Adobe AIR Development forum.
I did a bit of research on this yesterday and found that while the user agent is modifiable, the referer is not. Any chance you can alter the recaptcha code instead? I'd also like to recommend adding a new feature request to our ideas.adobe.com site and letting others know so they can vote if they find it interesting or valuable.
Recaptcha is owned and hosted by google so i doubt I can modify their
source code. I'm getting away from adobe air little by little with
those kind of silly problems and I dont belive you can build a really
good application in air
Ah ya, I didn't know if there was a configuration option available on the recaptcha settings.
One thing you might want to try is to modify the "Referer" header directly via a URLRequestHeader. I just tested this out and it looks like it might work (I was able to modify the Referer string, I didn't try attaching to recaptcha.)
I did do a quick search on google's recaptcha forums and it looks like you aren't alone with the referer errors. I saw a number of posts regarding this over the last couple weeks.
i dont think i can use URLRequestHeader, because i need to include the site
from that page will be executed and dynamically add the recaptcha, that
iframe is included in a bridge between my application and my website and i
get the recaptcha image from the dom site page and display it into my app,
so i dont think i can use it, i need somehow to set the referer globally or
You can use a non-application sandbox iframe to do the communications with the recaptcha servers. And, in this case, the refferer will be whatever you'll be using as a sandboxRoot. And you can talk with the application content via the sandbox bridge.
that's exactly what i did, but the iframe that contains the recaptcha page
has "app://application.html" as referrer, so it doesnt work, the iframe is
not inside the application is linked thru sandbox bridge
but doesnt work...............................
doesnt seems to work at all, i tried to run it, nothing happens when you press the buttos
also i get the following error
ReferenceError: Can't find variable: Recaptcha
You cant modify the referred from your js code, with all hacks and tricks its not working.
I got enough with Adobe Air, is a big waste of time for a programmer