qnd:curl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
qnd:curl [2021/08/26 19:48] – created mguptonqnd:curl [2023/05/31 12:12] (current) – [Check response times] mgupton
Line 3: Line 3:
 ==== Check response times ==== ==== Check response times ====
  
-The following is an example of a command that can be use to see the timing of various points in a HTTP request.+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.
 <code> <code>
-curl -w "dnslookup: %{time_namelookup} | connect: %{time_connect} | appconnect: %{time_appconnect} | pretransfer: %{time_pretransfer} | starttransfer: %{time_starttransfer} | total: %{time_total} | size: %{size_download}\n" https://impiger-cus-portal-api.azurewebsites.net+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> 
 +</code> 
 + 
 +==== Post data to webhook and show response headers ==== 
 +<code> 
 +curl -- -X POST --data "@sample.json" "http://​​172.16.60.22​:8099/webhook"
 </code> </code>
  
  • qnd/curl.1630007298.txt.gz
  • Last modified: 2021/08/26 19:48
  • by mgupton