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

There is actually a HTTP header (Range) that can be used for this. Works well in APIs but you can't do it with browsers, which is unfortunate.


Can you not set custom headers in browsers?


You can do it with AJAX requests, but not with links or regular forms (as far as I am aware... I'd love to hear otherwise)


Should a REST API ever be expose by a form or link?


The web is basically a REST API, no? (I'm being a bit facetious.)




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

Search: