apache-flex - 柔性 : HTTP request error #2032

标签 apache-flex actionscript-3 http comet

在 Flex 3 应用程序中,我使用 HTTPService 类向服务器发出请求:

var http:HTTPService = new HTTPService();
http.method = 'POST';
http.url = hostUrl;
http.resultFormat = 'e4x';
http.addEventListener(ResultEvent.RESULT, ...);
http.addEventListener(FaultEvent.FAULT, ...);
http.send(params);

该应用程序具有 Comet 架构。所以它会发出长时间运行的请求。在等待对此请求的响应时,可以同时发出其他请求。

该应用程序在大多数情况下都能正常工作。但有时一些客户端在执行长时间运行的请求时会出现 HTTP 请求错误:

faultCode:Server.Error.Request
faultString:'HTTP request error'
faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://example.com/ws'

我认为这取决于用户的浏览器。

有什么想法吗?

最佳答案

当我在 HttpRequest 中发送更长的(3-4K!)参数时,我遇到了同样的问题。一旦我发送较小的它就起作用了(没有刷新、重新加载或任何东西)。我不知道客户端或网络服务器端是否对您可以发送的参数长度有限制,但这肯定会导致问题。
url limitations may cause it

关于apache-flex - 柔性 : HTTP request error #2032,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1491902/

相关文章:

actionscript-3 - 在 ActionScript 中将标签放置在复选框的左侧

php - 如何在服务器上启用 HTTP_RANGE

apache-flex - 在 Adob​​e Flash Builder 4 中使用 Flex 4.5 和 4.0

actionscript-3 - 在 ActionScript (NaN==parseFloat(input.text)) 中警告它总是假的。为什么?

flash - AS3 NetConnection 推荐用法

json - 如何保护服务免受 gzip 炸弹的攻击?

php - 使用 UserAgent 时 curl 400 错误

apache-flex - ActionScript /Flex : bitwise AND/OR over 32-bits

html - 柔性 : Does anyone know a good HTML editor?

flash - ActionScript 3.0 : Array vs. 向量。<对象>