简体   繁体   English

ActionScript中的GET请求中的授权标头?

[英]Authorization header in a GET request in ActionScript?

在ActionScript中似乎无法完成需要HTTP身份验证的GET请求?

ya unfortunately for us all you can not use the authorization header in the Flash player. 对我们来说很不幸,您无法在Flash Player中使用授权标头。 I'm pretty sure AIR supports it, though that probably doesn't help you. 我很确定AIR支持它,尽管那可能对您没有帮助。 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. 解决方案是通过执行请求并返回响应的代理(例如php脚本)运行请求。 Thus works quite well as your Flash application does not need to be aware of this extra step. 因此效果很好,因为您的Flash应用程序不需要知道此额外步骤。

I hope that helps (cause it took forever to type on this phone!) 希望能对您有所帮助(因为在此手机上打字需要花费很多时间!)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM