Re: [PHP] HTTP_ACCEPT - Reliabilty?

2003-01-14 Thread Danny Shepherd
Hi,

No, I wouldn't rely on it at all, I couldn't find a browser that *does* have
that mime-type in it's header! - Here's what IE6 sends :

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/msword, */*
Accept-Language: en-gb
Accept-Encoding: gzip, deflate

Flash, along with a multitude of other plugins, is installed and working
fine.

FWIW, Mozilla 1.3a sends:

Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate,compress;q=0.9

Opera 7 sends:

Accept: text/html, image/png, image/jpeg, image/gif, image/x-xbitmap,
*/*;q=0.1
Accept-Language: en
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0



- Original Message -
From: SED [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 14, 2003 10:22 AM
Subject: [PHP] HTTP_ACCEPT - Reliabilty?


 I'm using Flash very often within websites. Like you know, sometimes the
 user doesn't have the Flash-plug-in so I was wandering if I could depend
 on this $_SERVER['HTTP_ACCEPT'] variable to look for shockwave-flash.
 If found, the visitor has Flash-plugging, if not, he doesn't.

 So my question really is, can I base my Flash-detection on this global
 variable or is too uncertain? (e.g. when the user is using Netscape,
 Opera etc., Linux, Mac etc.)

 Regards,
 Sumarlidi E. Dadason

 SED - Graphic Design
 _
 E-mail: [EMAIL PROTECTED]
 website: www.sed.is


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] HTTP_ACCEPT - Reliabilty?

2003-01-14 Thread Chris Shiflett
--- Danny Shepherd [EMAIL PROTECTED] wrote:
 No, I wouldn't rely on it at all, I couldn't find a
 browser that *does* have that mime-type in it's
 header!

Danny is right. The reason you cannot depend on the Accept
header is that most browsers will include */* as an
acceptable type (which basically means the browser will
accept any type/subtype) and assign it the lowest quality
factor.

I cannot imagine a Web browser that will prefer Flash
(assigning it anything but the lowest quality factor);
maybe some Web developers should consider that when
designing user interfaces. :-)

Chris

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php