qnd:curl

curl

The following is an example of a command that can be use to see the timing of various points in a HTTP request like the DNS lookup time.

curl -w "dnslookup: %{time_namelookup} | connect: %{time_connect} | appconnect: %{time_appconnect} | pretransfer: %{time_pretransfer} | starttransfer: %{time_starttransfer} | total: %{time_total} | size: %{size_download}\n" <URL>

Post data to webhook and show response headers

curl -D - -X POST --data "@sample.json" "http://​​172.16.60.22​:8099/webhook"
  • qnd/curl.txt
  • Last modified: 2023/05/31 12:12
  • by mgupton