36 points · by surajgupta · 12y ago · 19 comments
With Accept you need to parse the ";q=X" part as well.
See Accept when I access a website with Firefox: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Your REST API needs to understand this, according to these slides.
I can't GET this file.
you can "save" the presentation locally
One can use a LinkedIn account from BugMeNot (http://bugmenot.com/view/linkedin.com) to safely log into SlideShare so you can download the PDF.
(It would have been more convenient if you had just published a PDF download link alongside the SlideShare embed.)
(One side effect: I wanted to save this to Pocket to read later on a flight, but couldn't because it was slides, not HTML).
For anyone interested, this is the article I hand out when someone asks me about designing a REST API: http://www.vinaysahni.com/best-practices-for-a-pragmatic-res...
And here is the HN discussion from when it was originally posted: https://news.ycombinator.com/item?id=5819231
Thanks, surajgupta, good work.