Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not actually, the Accept header isn't a mere suggestion. If the server chooses not to fulfill it, the correct response is 406 Not Acceptable. This is why browsers send something like this in their Accept header:

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8

This says "we would prefer one of these formats, but we'll take whatever you got".



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: