ISSUE-58

.htaccess 'accept header' ONLY responds to a header which EXACTLY matches

State:
OPEN
Product:
Recipes
Raised by:
Jon Phipps
Opened on:
2007-07-17
Description:
Per Tim BL

"The recipe for responding to an accept header only responds to a header which
EXACTLY matches "application/rdf+xml". However, a client may send (and often
will) a header with many  comma-separated values, and they may have quality
parameters (q=0.xx).

This is a serious problem as people are copying the recipe, and making sites
which do not work."

This applies to Recipes 3, 4, 5 and references this part of the .htaccess Apache
configuration:

"...

# Rewrite rule to serve RDF/XML content if requested 
RewriteCond %{HTTP_ACCEPT} application/rdf\\+xml

..."

The rewrite condition regular expression: "application/rdf\\+xml" 
needs to be rewritten
Related emails:
  1. ISSUE-58: .htaccess \\'accept header\\' ONLY responds to a header which EXACTLY matches \\'application/rdf+xml\\' (from dean+cgi@w3.org on 2007-07-17)
  2. Re: [Recipes] ISSUE-58: .htaccess 'accept header' ONLY responds to a header which EXACTLY matches \\'application/rdf+xml\\' (from diego.berrueta@fundacionctic.org on 2007-07-18)
  3. RE: [Recipes] ISSUE-58: .htaccess 'accept header' ONLY responds to a header which EXACTLY matches \\'application/rdf+xml\\' (from A.J.Miles@rl.ac.uk on 2007-07-24)
  4. Re: [Recipes] ISSUE-58: .htaccess 'accept header' ONLY responds to a header which EXACTLY matches \\'application/rdf+xml\\' (from diego.berrueta@fundacionctic.org on 2007-07-25)
  5. RE: [Recipes] ISSUE-58: .htaccess 'accept header' ONLY responds to a header which EXACTLY matches \\'application/rdf+xml\\' (from A.J.Miles@rl.ac.uk on 2007-07-30)
  6. RE: [Recipes] ISSUE-58: .htaccess 'accept header' ONLY responds to a header which EXACTLY matches \\'application/rdf+xml\\' (from diego.berrueta@fundacionctic.org on 2007-08-06)
  7. Re: Agenda - Sep 04 2007 SWD telecon - 1500 UTC (from diego.berrueta@fundacionctic.org on 2007-09-04)
  8. [ALL] Discussion of 'Recipes' in Amsterdam (from baker@sub.uni-goettingen.de on 2007-09-04)
  9. [ALL] Agenda - Sep 18 2007 SWD telecon - 1500 UTC (from baker@sub.uni-goettingen.de on 2007-09-15)
  10. [RECIPES] Amsterdam topic 'Recipes' (from baker@sub.uni-goettingen.de on 2007-09-15)
  11. Re: [ALL] Agenda - Sep 18 2007 SWD telecon - 1500 UTC (from qreul@csd.abdn.ac.uk on 2007-09-18)
  12. Re: [ALL] Agenda - Sep 18 2007 SWD telecon - 1500 UTC (from aisaac@few.vu.nl on 2007-09-18)
  13. [Recipes] roadmap to the next draft (from diego.berrueta@fundacionctic.org on 2008-03-11)
  14. Re: [Recipes] roadmap to the next draft (from jphipps@madcreek.com on 2008-03-11)
  15. Meeting record: 2008-03-11 telecon (from aisaac@few.vu.nl on 2008-03-12)

Related notes:

No additional notes.