我正在使用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 = 0
和 IOErrorEvent.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/