Authorization header in a GET request in ActionScript?
It seems i开发者_运维百科mpossible to accomplish a GET request that requires HTTP Authentication in ActionScript?
ya unfortunately for us all you can not use the authorization header in the Flash player. I'm pretty sure AIR supports it, though that probably doesn't help you. There are lots more headers not allowed, these are listed in the documentation.
The solution is to run your request through a proxy (such as a php script) that executes your request and returns the response. Thus works quite well as your Flash application does not need to be aware of this extra step.
I hope that helps (cause it took forever to type on this phone!)
精彩评论