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

后端 未结 3 1479
花落未央
花落未央 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:17

    the ability to look at the headers is limited in several browsers, therefore flash has a problem with being passed the information. this is mainly blamed on the browser settings, but i have yet to find one where it actually works. status event output.

    i gave up and had the file print the response code in my projects, not wonderful (and somewhat defeating the point) but seems to work.

提交回复
热议问题