Skip to content

Instantly share code, notes, and snippets.

@jkbrzt
Created February 17, 2014 12:35
Show Gist options
  • Save jkbrzt/9049782 to your computer and use it in GitHub Desktop.
Save jkbrzt/9049782 to your computer and use it in GitHub Desktop.
$ pip install httpie
$ echo 'fake partial download' > /tmp/test
$ http --verbose --download --continue --output=/tmp/test https://dl.dropboxusercontent.com/s/prxxcgndysv13t1/httpie.png
GET /s/prxxcgndysv13t1/httpie.png HTTP/1.1
Accept: */*
Host: dl.dropboxusercontent.com
Range: bytes=22-
User-Agent: HTTPie/0.8.0
HTTP/1.1 206 PARTIAL CONTENT
Connection: keep-alive
Content-Length: 11225
Content-Type: image/png
Date: Mon, 17 Feb 2014 12:33:25 GMT
Server: nginx
X-RequestId: c041346c831be0b15ca0d6fde464ce7c
accept-ranges: bytes
cache-control: max-age=0
content-range: bytes 22-11246/11247
etag: 47628n
pragma: public
x-dropbox-request-id: c8c6198626046739479afc4b3d3e96ed
x-server-response-time: 186
Downloading 10.98 kB to "/tmp/test"
Done. 10.96 kB in 0.00036s (29.40 MB/s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment