Skip to content

Instantly share code, notes, and snippets.

View kenkit's full-sized avatar
💭
Where the sky begins, the horizon ends. So too do beginings and endings.

🆂🅰🅶🅴 kenkit

💭
Where the sky begins, the horizon ends. So too do beginings and endings.
View GitHub Profile
@kenkit
kenkit / curl_range.md
Created December 6, 2017 00:27 — forked from mocchira/curl_range.md
HTTP GET with Range header by curl
  • normal(explicitly specified start AND end)
  curl -v -X GET -H "range: bytes=1-8" http://localhost:8080/bbb/test
  • specified ONLY start(end will be specified at the end of file)
  curl -v -X GET -H "range: bytes=10-" http://localhost:8080/bbb/test
  • specified ONLY one negative value(last N bytes of file will be retrieved)