what to do if HTTP_ACCEPT header is not provided

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    what to do if HTTP_ACCEPT header is not provided

    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
    Recognized Expert Expert
    • Aug 2008
    • 8694

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

    Comment

    Working...