开发者

Authorization header in a GET request in ActionScript?

开发者 https://www.devze.com 2023-01-25 21:28 出处:网络
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 playe

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!)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号