3 ms·
How's about sum Accept headers up in there?
by wseymour 15y ago
How's about sum Accept headers up in there?
- mmackh 15y agoCould you point me in the right direction?
- lysol 15y agoAccept: application/json
- deleted 15y ago[deleted]
- mmackh 15y agoI'm currently using header('Content-type: application/json'); Source: http://stackoverflow.com/questions/267546/correct-http-header-for-json-file http://stackoverflow.com/questions/267546/correct-http-heade...
- Robin_Message 15y agoI think they want it so that if they send an Accept header in the request that asks for json, you reply with json, instead of using a query parameter to specify the format. https://developer.mozilla.org/en/HTTP/Content_negotiation https://developer.mozilla.org/en/HTTP/Content_negotiation has more details about the accept header and its use.