unable to get HTTP response code/headers in actionscript 3?

后端 未结 3 1491
花落未央
花落未央 2021-01-18 22:45

I\'m using URLLoader to POST to a server. The xml response from the server can respond with a 404 or a 403 (forbidden) error. However I am unable to get the response codes

3条回答
  •  长情又很酷
    2021-01-18 23:01

    As a late answer (FWIW):

    From what I've read, the status codes you get depend on what browser the Flash player is running in.

    One article says you can only get 200 or 500. One SO question says they were getting 207 in Chrome but 0 in Firefox.

    I, personally, have tested using the dev Flash player as well as an ActiveX version and was able to get many different 2XX/4XX HTTP status codes (but couldn't get the 3XX redirect codes I tried because the requests got redirected and returned 200s).

提交回复
热议问题