Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone know any way you can detect if a client has the flash plugin using perl ?

Replies are listed 'Best First'.
Re: Flash Detection
by little (Curate) on Nov 22, 2001 at 20:10 UTC
Re: Flash Detection
by MZSanford (Curate) on Nov 22, 2001 at 16:25 UTC
    In theory, you could check the Accept line in the header for swf, but, in pratice, i don't think any browser sends this. I would suggest using the information oin the <OBJECT> tag to start a download if the plugin does not start. But, i do not think there is a perl way to do it.

    MZ "no a CGI expert" Sanford
    i had a memory leak once, and it ruined my favorite shirt.
Re: Flash Detection
by Biker (Priest) on Nov 22, 2001 at 17:34 UTC

    This is browser information. Perl executes on the server and is (AFAIK) normally not told by the browser what plugins are available.

    You'll have to send down JavaScript to the browser, potentially dynamically built JavaScript, that will try to determine if the plugin is available and if so download your flash.

    f--k the world!!!!
    /dev/world has reached maximal mount count, check forced.