Skip to content

Instantly share code, notes, and snippets.

@drewkerrigan
Created June 4, 2012 16:19
Show Gist options
  • Save drewkerrigan/2869339 to your computer and use it in GitHub Desktop.
Save drewkerrigan/2869339 to your computer and use it in GitHub Desktop.
Curl Test
root@s01:~/basho_bash_bench/results# ls -al | grep 6-04
drwxr-xr-x 27 root root 4096 2012-06-04 11:08 .
drwxr-xr-x 9 root root 4096 2012-06-04 10:58 ..
drwxr-xr-x 3 root root 4096 2012-06-04 11:08 cs-2-mb-15-min-1-wr-create
root@s01:~/basho_bash_bench/results# cd cs-2-mb-15-min-1-wr-create
root@s01:~/basho_bash_bench/results/cs-2-mb-15-min-1-wr-create# ls -al
total 28
drwxr-xr-x 3 root root 4096 2012-06-04 11:08 .
drwxr-xr-x 27 root root 4096 2012-06-04 11:08 ..
drwxr-xr-x 2 root root 4096 2012-06-04 11:08 backup
-rw-r--r-- 1 root root 5134 2012-06-04 11:16 exception.txt
-rw-r--r-- 1 root root 936 2012-06-04 11:16 filelist.txt
-rw-r--r-- 1 root root 1585 2012-06-04 11:16 stats.txt
root@s01:~/basho_bash_bench/results/cs-2-mb-15-min-1-wr-create# more exception.txt
**EXCEPTION**: Bad Status: time:0.254,status:403 from curl command: curl -o /dev/null -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS M55PGYTK3SAU2BR_EBQV:mEwO5D2DfFywFHx3USLWa7UJ
0FQ=" -H "Content-Type: application/octet-stream" -H "Date: Mon, 04 Jun 2012 11:08:57 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/f441543fc1e2 -T ./files_136/14
**EXCEPTION**: Bad Status: time:0.125,status:500 from curl command: curl -o /dev/null -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS M55PGYTK3SAU2BR_EBQV:OpBJjAev/wTO8EnVyPkRJTg1
qpI=" -H "Content-Type: application/octet-stream" -H "Date: Mon, 04 Jun 2012 11:09:12 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/0421ff9ad378 -T ./files_136/19
**EXCEPTION**: Bad Status: time:0.003,status:500 from curl command: curl -o /dev/null -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS M55PGYTK3SAU2BR_EBQV:1w2X6Zv0NtQ2akeUNctsNGQc
3hQ=" -H "Content-Type: application/octet-stream" -H "Date: Mon, 04 Jun 2012 11:09:51 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/809d83cb79e7 -T ./files_136/50
**EXCEPTION**: Bad Status: time:0.003,status:500 from curl command: curl -o /dev/null -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS M55PGYTK3SAU2BR_EBQV:doQaIV4t0E/6pJnB3HjXolk3
0SA=" -H "Content-Type: application/octet-stream" -H "Date: Mon, 04 Jun 2012 11:10:30 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/c3424448b458 -T ./files_136/23
**EXCEPTION**: Bad Status: time:0.003,status:500 from curl command: curl -o /dev/null -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS M55PGYTK3SAU2BR_EBQV:5dFsTCkBSXMcW1l6loE+7aMd
jB4=" -H "Content-Type: application/octet-stream" -H "Date: Mon, 04 Jun 2012 11:11:09 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/34a1d9724467 -T ./files_136/16
**EXCEPTION**: Bad Status: time:0.003,status:500 from curl command: curl -o /dev/null -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS M55PGYTK3SAU2BR_EBQV:EwTdF0pCXIPJnLKxWigUfXYv
cV0=" -H "Content-Type: application/octet-stream" -H "Date: Mon, 04 Jun 2012 11:11:48 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/5802eb4c539c -T ./files_136/32
**EXCEPTION**: Bad Status: time:0.003,status:500 from curl command: curl -o /dev/null -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS M55PGYTK3SAU2BR_EBQV:8kBJDU0rRWrwG0A8iNyqp/W+
cy8=" -H "Content-Type: application/octet-stream" -H "Date: Mon, 04 Jun 2012 11:12:27 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/0884c1543829 -T ./files_136/66
**EXCEPTION**: Bad Status: time:0.003,status:500 from curl command: curl -o /dev/null -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS M55PGYTK3SAU2BR_EBQV:3KMrdy3hX4UnTKZoQf/NvT7j
BLM=" -H "Content-Type: application/octet-stream" -H "Date: Mon, 04 Jun 2012 11:13:04 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/722ce2e38caf -T ./files_136/23
**EXCEPTION**: Bad Status: time:0.003,status:500 from curl command: curl -o /dev/null -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS M55PGYTK3SAU2BR_EBQV:VnpIZUiAEBOJYgpdBd4PGcCL
sY8=" -H "Content-Type: application/octet-stream" -H "Date: Mon, 04 Jun 2012 11:13:42 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/09985be6b1fe -T ./files_136/97
**EXCEPTION**: Bad Status: time:0.003,status:500 from curl command: curl -o /dev/null -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS M55PGYTK3SAU2BR_EBQV:biXScll/R3rZTTVKbVf5guOj
paU=" -H "Content-Type: application/octet-stream" -H "Date: Mon, 04 Jun 2012 11:14:21 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/240624b4a957 -T ./files_136/18
**EXCEPTION**: Bad Status: time:0.003,status:500 from curl command: curl -o /dev/null -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS M55PGYTK3SAU2BR_EBQV:E0X4B5QigJ1jDFiJfrcKIRJL
OIg=" -H "Content-Type: application/octet-stream" -H "Date: Mon, 04 Jun 2012 11:14:59 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/087bd1776d57 -T ./files_136/67
**EXCEPTION**: Bad Status: time:0.003,status:500 from curl command: curl -o /dev/null -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS M55PGYTK3SAU2BR_EBQV:34uYo5HlixJIpOYW6gjbEP47
H6I=" -H "Content-Type: application/octet-stream" -H "Date: Mon, 04 Jun 2012 11:15:38 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/2e2645031755 -T ./files_136/34
**EXCEPTION**: Bad Status: time:0.003,status:500 from curl command: curl -o /dev/null -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS M55PGYTK3SAU2BR_EBQV:Aqd6F67OoQ+Q4uzsv7wYSbhH
2hs=" -H "Content-Type: application/octet-stream" -H "Date: Mon, 04 Jun 2012 11:16:15 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/c48de50168ae -T ./files_136/0
root@s01:~/basho_bash_bench/results/cs-2-mb-15-min-1-wr-create# cd ../../
root@s01:~/basho_bash_bench# curl -o /dev/null -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS M55PGYTK3SAU2BR_EBQV:34uYo5HlixJIpOYW6gjbEP47
> H6I=" ^C "Content-Type: application/octet-stream" -H "Date: Mon, 04 Jun 2012 11:15:38 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/2e2645031755 -T ./files_136/34
root@s01:~/basho_bash_bench#
root@s01:~/basho_bash_bench#
root@s01:~/basho_bash_bench#
root@s01:~/basho_bash_bench#
root@s01:~/basho_bash_bench#
root@s01:~/basho_bash_bench#
root@s01:~/basho_bash_bench# curl -v -w "time:%{time_total},status:%{http_code}" -k -s -H "Authorization: AWS M55PGYTK3SAU2BR_EBQV:34uYo5HlixJIpOYW6gjbEP47H6I=" -H "Content-Type: application/octet-stream" -H "Date: Mon, 04 Jun 2012 11:15:38 CDT" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80/test/2e2645031755 -T ./files_136/34
* 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/2e2645031755 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 M55PGYTK3SAU2BR_EBQV:34uYo5HlixJIpOYW6gjbEP47H6I=
> Content-Type: application/octet-stream
> Date: Mon, 04 Jun 2012 11:15:38 CDT
> Content-Length: 136000000
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
< HTTP/1.1 204 No Content
< Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue)
< ETag: "26730d1524cc3cf5c8221de84a09be99"
< Date: Mon, 04 Jun 2012 16:17:49 GMT
< Content-Type: text/plain
< Content-Length: 0
<
* Connection #0 to host 10.80.83.68 left intact
* Closing connection #0
time:11.433,status:204
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment