Skip to content

Instantly share code, notes, and snippets.

@clayg
Created July 22, 2015 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayg/cf1c39be98279ae3d7eb to your computer and use it in GitHub Desktop.
Save clayg/cf1c39be98279ae3d7eb to your computer and use it in GitHub Desktop.
vagrant@saio:~$ curl -H 'x-auth-token: AUTH_tkc73d27482a834f1c8884ca532c39ca5f' http://saio:8080/v1/AUTH_test/ec_test/go1.4.2.linux-amd64.tar.gz -XCOPY -H 'Destination: ec_test/copy.bak' -H 'Range: bytes=1561547599999-' -v
* Hostname was NOT found in DNS cache
* Trying 127.0.1.1...
* Connected to saio (127.0.1.1) port 8080 (#0)
> COPY /v1/AUTH_test/ec_test/go1.4.2.linux-amd64.tar.gz HTTP/1.1
> User-Agent: curl/7.35.0
> Host: saio:8080
> Accept: */*
> x-auth-token: AUTH_tkc73d27482a834f1c8884ca532c39ca5f
> Destination: ec_test/copy.bak
> Range: bytes=1561547599999-
>
< HTTP/1.1 416 Requested Range Not Satisfiable
< Content-Length: 62442704
< Content-Type: text/html; charset=UTF-8
< Last-Modified: Wed, 22 Jul 2015 02:27:09 GMT
< Etag: cdc1ff96c6c99b918402693a5cf0e1f3
< X-Timestamp: 1437532028.12583
< X-Object-Meta-Mtime: 1424239802.000000
< X-Trans-Id: tx2231682d486840efa714e-0055af3c79
< Date: Wed, 22 Jul 2015 06:47:21 GMT
<
^C
vagrant@saio:~$ curl -H 'x-auth-token: AUTH_tkc73d27482a834f1c8884ca532c39ca5f' http://saio:8080/v1/AUTH_test/test/go1.4.2.linux-amd64.tar.gz -XCOPY -H 'Destination: test/copy.bak' -H 'Range: bytes=1561547599999-' -v
* Hostname was NOT found in DNS cache
* Trying 127.0.1.1...
* Connected to saio (127.0.1.1) port 8080 (#0)
> COPY /v1/AUTH_test/test/go1.4.2.linux-amd64.tar.gz HTTP/1.1
> User-Agent: curl/7.35.0
> Host: saio:8080
> Accept: */*
> x-auth-token: AUTH_tkc73d27482a834f1c8884ca532c39ca5f
> Destination: test/copy.bak
> Range: bytes=1561547599999-
>
< HTTP/1.1 416 Requested Range Not Satisfiable
< Content-Length: 97
< Content-Type: application/x-tar
< Accept-Ranges: bytes
< Last-Modified: Wed, 22 Jul 2015 04:50:59 GMT
< Etag: cdc1ff96c6c99b918402693a5cf0e1f3
< X-Timestamp: 1437540658.33014
< X-Object-Meta-Mtime: 1424239802.000000
< X-Trans-Id: tx8ace40896aed49b392ed6-0055af3c8b
< Date: Wed, 22 Jul 2015 06:47:39 GMT
<
* Connection #0 to host saio left intact
<html><h1>Requested Range Not Satisfiable</h1><p>The Range requested is not available.</p></html>vagrant@saio:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment