News for hackers. Stuff that matters.
Re:Like Instapaper, but for Developers by wseymour on Wednesday February 29, 2012 @04:13AM (#3647144)
How's about sum Accept headers up in there?
Re:Like Instapaper, but for Developers by mmackh on Wednesday February 29, 2012 @06:13AM (#3647372)
Could you point me in the right direction?
Re:Like Instapaper, but for Developers by lysol on Wednesday February 29, 2012 @08:17AM (#3647647)
Accept: application/json
Re:Like Instapaper, but for Developers by mmackh on Wednesday February 29, 2012 @08:37AM (#3647711)
I'm currently using header('Content-type: application/json'); Source: http://stackoverflow.com/questions/267546/correct-http-heade...
Re:Like Instapaper, but for Developers by Robin_Message on Wednesday February 29, 2012 @09:01AM (#3647788)
I 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 has more details about the accept header and its use.