actionscript-3 - URLLoader.load POST 上的 Flash AS3 - 获取 http status=0 并且没有数据。在 Flash IDE 中工作

标签 actionscript-3 flash http-status-codes ioerror

我正在使用urlload.load(urlRquest)进行休息调用。

还有

  urlRequest.method = URLRequestMethod.POST;
  urlRequest.contentType = "application/xml";

当我在 Flash IDE 中进行调用时,如果发生错误,我会得到 HTTPStatusEvent.status = 400(或其他)。并且 IOErrorEvent.data 包含 xml(或者有时是字符串)。

但是,当我在浏览器(Firefox Mac 或 PC)中运行 swf 时,HTTPStatusEvent.status = 0IOErrorEvent.data 为空。 (有趣的是,在 Safari Mac 中,我确实得到了 400 状态,但仍然没有数据。)

对可能发生的事情有什么想法吗? (我需要我的错误!)

最佳答案

根据action script reference,在 Firefox 中运行 swf 将始终生成 0,因为 Firefox 不会将状态代码传递给 Flash 播放器。 。

关于actionscript-3 - URLLoader.load POST 上的 Flash AS3 - 获取 http status=0 并且没有数据。在 Flash IDE 中工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6682851/

相关文章:

flash - 在 AS3/CS5 中处理外部函数文件的最佳实践

javascript - 禁用/检测 Windows 7 截图工具?

javascript - 状态 204 显示response.ok

actionscript-3 - Flash中内存有效的声音管理

apache-flex - 将多个 SWF 文件转换为单个 EXE

apache-flex - 在 Actionscript 3 (Flex) 中扩展数组

Flash、 ActionScript : Load assets from external SWF

powershell - 在 PowerShell 中处理 404 错误

nginx - 如何只写入状态为 200 的日志

apache-flex - Adobe Flex 中的集合