在Flex 3應用程序我用的HTTPService類發出請求到服務器:軟硬度:HTTP請求錯誤#2032
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'
我認爲這取決於用戶的瀏覽器。
任何想法?
也儘量flash.events.HTTPStatusEvent.HTTP_RESPONSE_STATUS是你在空中 – 2013-08-28 10:54:51