1 Reply Latest reply on Feb 11, 2008 1:47 PM by ntsiii

    HTTPService HTTP status codes?

    gmercer@yahoo.com
      Hi All,

      I'm trying to use HTTPService to do a GET against a url.

      <mx:HTTPService id="srv"
      url=" http://www.someurl.com/~gmercer/private"
      resultFormat="text"
      method="GET"
      result="handleResult(event)"
      fault="showFault(event)" />

      But when I do the send() I get back the following event data from my "showFault()" function.

      [FaultEvent
      fault=[RPC Fault
      faultString="HTTP request error"
      faultCode="Server.Error.Request"
      faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"].URL: http://www.someurl.com/~gmercer/private"
      messageId="BC76FCAD-7C6D-C0D1-215A-0629733DE96B"
      type="fault"
      bubbles=false
      cancelable=true
      eventPhase=2]

      Is there a way to get the http status code and the resulting http body from the error/fault?

      Thanks,
      Greg
        • 1. Re: HTTPService HTTP status codes?
          ntsiii Level 3
          Actually, this is a problem between the browser and the flash player. In the case of an error, the browser does not pass the FP the full exception. There are some server-side solutions to this, like LCDS and, I think BlazeDS.

          I usually hit the url in a browser, where I can get more detail on the error.

          Tracy