[flexcoders] Flash Player Detection / ServerSide
Does anyone have any knowledge of how to detect whether or not a simple REST call to a server (java/php/etc.) is from the Flash Player (flex app)? It would appear that "application/x-shockwave-flash" can be detected by the server in the HTTP_ACCEPT header as long as the type is defined in the html wrapper like this... http://www.adobe.com/go/getflashplayer";> Outside of this methodology, is there another approach or perhaps something the flash player sends along with each request? I saw this reference as well so any additional comments are welcome. The "HTTP_X_FLASH_VERSION" HTTP field, which returns the players FLASH version in a server side script, only appears to be available when opening a .swf in Internet Explorer. Nothing is returned for HTTP_X_FLASH_VERSION when opening the same .swf in Google Chrome or Firefox 3+.
Re: [flexcoders] Flash Player Detection / ServerSide
No, and it is not even in general possible. Flash can send requests using the browser where it is running. Exceptions are FileReference and NetConnection, but all the rest you can do via calling JavaScript and thus using browsers own functionality.
[flexcoders] Flash Player Detection / ServerSide
Does anyone have any knowledge of how to detect whether or not a simple REST call to a server (java/php/etc.) is from the Flash Player (flex app)? It would appear that "application/x-shockwave-flash" can be detected by the server in the HTTP_ACCEPT header as long as the type is defined in the html wrapper like this... http://www.adobe.com/go/getflashplayer";> Outside of this methodology, is there another approach or perhaps something the flash player sends along with each request? I saw this reference as well so any additional comments are welcome. The "HTTP_X_FLASH_VERSION" HTTP field, which returns the players FLASH version in a server side script, only appears to be available when opening a .swf in Internet Explorer. Nothing is returned for HTTP_X_FLASH_VERSION when opening the same .swf in Google Chrome or Firefox 3+.