How to access returned AS3 URLLoader data in IOErrorEvent

I am writing an ActionScript library for api. I am using a URLLoader object to load data from api. The problem I am facing is that whenever the api returns an http status of 400, ActionScript treats this as an io error. This is all a find and good, however, it seems that there is no access to any data that was returned, if so. Therefore, any useful xml about the cause of the error that is returned is lost. Is there any way around this? This makes the library a pain if there can be no useful information for developers when the api returns an error. Thanks for any help!

+3
source share
1 answer

400. , HTTP.

, :

, 200- -, , , 200 .

- cookie , . Flash cookie, javascript ExternalInterface, , , , back-end-, cookie .

+3

Source: https://habr.com/ru/post/1698118/


All Articles