Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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, as is accessing the response code, but getting a hold of the actual response headers seems to be conspicuously lacking...

Specifically, I would like to get a hold of the Last-Modified response header.

like image 832
aaaidan Avatar asked Oct 09 '08 02:10

aaaidan


1 Answers

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.

like image 72
aaaidan Avatar answered Nov 02 '22 03:11

aaaidan