[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

re: Re: XML Client detection

  • From: rev-bob@g...
  • To: xml-dev@i...
  • Date: 02 Nov 99 05:44:59 -0500

application msword xml
> [Rev. Robert L. Hood]

Please - Rev. Bob or even Bob is fine.  ;)

> >Some of you have probably already seen the problem: I need a way to detect XML
> >compliance from the server level, using only the data normally sent to the
> >server by the UA.
> 
> Have you tried looking at the Accept: header?  It's a list of media types
> accepted by the user agent; if it includes 'text/xml' or 'application/xml',
> you should be able to send XML.

Actually, no - I *hadn't* looked at that yet.  From what you say, provided I can access 
it, that should be exactly what I'm looking for in most cases, and may help with some 
other tailoring projects as well.

I just did a little looking around, though, and all is not exactly peachy.  For instance, one 
page I checked showed my HTTP_ACCEPT value as the following (using IE5):

   image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel,
   application/msword, application/vnd.ms-powerpoint, application/x-comet, */*

This seems to be all the *non-text* stuff IE5 can handle (including that little Comet 
Cursor control I installed a few days ago), but this still doesn't help much.  According to 
this, I can't even reliably test for being able to read HTML.  NN2.02 and NN4.7 are 
much the same, minus the application/* stuff and (in the case of NN4.7) adding the 
image/png type.  The "*/*" type is singularly useless, in that it can't possibly be accurate 
- ten years from now, that would match "image/holographic", but we know that wouldn't 
work in anything existing now.

In short, although the theory behind this sounds really neat at first, it doesn't look all that 
promising In Real Life.  (I appreciate the lead, though - does anyone else have something 
that might take us even further?)



 Rev. Robert L. Hood  | http://rev-bob.gotc.com/
  Get Off The Cross!  | http://www.gotc.com/

Download NeoPlanet at http://www.neoplanet.com


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.