Connecting Tech Pros Worldwide Forums | Help | Site Map

what to do if HTTP_ACCEPT header is not provided

Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,662
#1: Apr 3 '09
Hi,

recently I get requests from a User Agent (WinHttp) that doesn't provide the HTTP_ACCEPT header (which I use to determine if I send HTML or XHTML content).

How do I handle such requests? send a 406 (not acceptable) or 412 (precondition failed) status code?


Dormi

Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,662
#2: Apr 12 '09

re: what to do if HTTP_ACCEPT header is not provided


finally I decided to send a 406 and terminate the connection (and the script).
Reply


Similar Apache Web Server bytes