I am using Adobe Flash ActionScript 3.0 to upload and download a file from box.com. I am in the process of converting my code from using v1 to v2 of the box.com API. I was able to get the OAuth process to work (I get the access_token). However, I am not able to download a file. This is because downloading a file from box.com requires a GET with a header containing:
“Authorization: Bearer ”. (Reference: http://developers.box.com/docs/#files-download-a-file)
However, ActionScript does not support this:
Due to browser limitations, custom HTTP request headers are only supported for POST requests, not for GET requests. (From: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/URLRequest.html#requestHeaders)
If anybody knows a workaround for this, any pointers will be greatly appreciated.