Access HTTP response headers in for flash.net.URLLoader object?

后端 未结 1 1336
孤城傲影
孤城傲影 2020-12-08 21:50

Is there a way to access the response headers from an HTTP result when using Flash/Flex\'s URLLoader?

Setting the request headers is possible,

相关标签:
1条回答
  • 2020-12-08 22:09

    Oops. Answering my own question here, but AIR introduces the URLLoader.httpResponseStatus event which includes a responseHeaders property (plus a responseURL property for brownie points).

    Thankfully my question was for an AIR application, so that solves my problem. It's still a bit shocking that non-AIR flash/flex applications cannot seem to access the response headers.

    0 讨论(0)
提交回复
热议问题