在 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);
该应用程序具有彗星架构。所以它会发出长时间运行的请求。在等待对该请求的响应时,可以同时进行其他请求。
该应用程序在大多数情况下都有效。但有时某些客户端在执行长时间运行的请求时会收到 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'
我认为这取决于用户的浏览器。
有任何想法吗?