License: (CC 3.0) BY-NC-SA
get
curl -d '{"auth":{"tenantId":"123","passwordCredentials":{"username": "joeuser", "password": "secrete"}}}' -H "Content-type: application/json" http://localhost:35357/v2.0/tokens
parse json data
curl url | python -mjson.tool
post
curl -X POST url
post with content
curl -X POST -d '' url
with header
curl -H "Content-type: application/json" url
test tls
curl --tlsv1.2 url
test network latency
curl -o /dev/null -s -w "\ndns: %{time_namelookup}s\nredirect: %{time_redirect}s\ntime_connect: %{time_connect}\ntime_appconnect: %{time_appconnect}s\ntime_pretransfer: %{time_pretransfer}\nstime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" https://www.baidu.com