本文介绍了Flex:HTTP 请求错误 #2032的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

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

In Flex 3 application I use HTTPService class to make requests to the server:

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 架构.所以它会发出长时间运行的请求.在等待此请求的响应时,可以同时发出其他请求.

The application has Comet-architecture. So it makes long running requests. While waiting a response for this request, other requests can be made concurrently.

该应用程序在大多数情况下都有效.但有时某些客户端在执行长时间运行的请求时会收到 HTTP 请求错误:

The application works in most cases. But sometimes some clients get HTTP request error executing long running request:

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'

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

I think it depends on user's browser.

有什么想法吗?

推荐答案

当我在 HttpRequest 中发送更长的 (3-4K!) 参数时,我遇到了同样的问题.一旦我发送较小的它就可以工作(无需刷新,重新加载或任何东西).我不知道您可以发送的参数长度在客户端或 Web 服务器端是否有限制,但这肯定会导致问题.
url 限制可能导致它

I experienced the same problem when I sent longer (3-4K!) parameter in HttpRequest. As soon as I sent smaller ones it worked (without refresh, reload or anything). I do not know if there is a limit on client side or on web server side of the length of parameters you can send but definitely this causes the issue.
url limitations may cause it

这篇关于Flex:HTTP 请求错误 #2032的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 14:38