Skip to content

Instantly share code, notes, and snippets.

@drewkerrigan
Created May 30, 2012 20:23
Show Gist options
  • Save drewkerrigan/2838699 to your computer and use it in GitHub Desktop.
Save drewkerrigan/2838699 to your computer and use it in GitHub Desktop.
Curl error
root@s01:~/basho_bash_bench/results/cs-2-mb-60-min-2-wr-create# curl -v -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS TO4-TUG1PBVPULDERE0P:PFrn6M/GYsIbaGOAnEljE/cq/7g=" -H "Content-Type: application/octet-stream" -H "Date: Wed, 30 May 2012 15:21:40 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/dd41aebc50a9 -T ./files/32
curl: Can't open './files/32'!
curl: try 'curl --help' or 'curl --manual' for more information
root@s01:~/basho_bash_bench/results/cs-2-mb-60-min-2-wr-create# cd ../../
root@s01:~/basho_bash_bench# curl -v -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS TO4-TUG1PBVPULDERE0P:PFrn6M/GYsIbaGOAnEljE/cq/7g=" -H "Content-Type: application/octet-stream" -H "Date: Wed, 30 May 2012 15:21:40 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/dd41aebc50a9 -T ./files/32
* About to connect() to proxy 10.80.83.68 port 8077 (#0)
* Trying 10.80.83.68... connected
* Connected to 10.80.83.68 (10.80.83.68) port 8077 (#0)
> PUT http://sl.basho.com:80/test/dd41aebc50a9 HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15
> Host: sl.basho.com
> Accept: */*
> Proxy-Connection: Keep-Alive
> Authorization: AWS TO4-TUG1PBVPULDERE0P:PFrn6M/GYsIbaGOAnEljE/cq/7g=
> Content-Type: application/octet-stream
> Date: Wed, 30 May 2012 15:21:40 CDT
> Content-Length: 2000001
> Expect: 100-continue
>
< HTTP/1.1 403 Forbidden
< Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue)
< Date: Wed, 30 May 2012 20:23:29 GMT
< Content-Length: 172
<
* Connection #0 to host 10.80.83.68 left intact
* Closing connection #0
<?xml version="1.0" encoding="UTF-8"?><Error><Code>AccessDenied</Code><Message>Access Denied</Message><Resource>/test/dd41aebc50a9</Resource><RequestId></RequestId></Error>time:0.004,status:403root@s01:~/basho_bash_bench#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment