Created
July 10, 2019 23:38
-
-
Save ychevarrias/6765bdb8a5ecc88f7a31478220c6bb78 to your computer and use it in GitHub Desktop.
Curl Result format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo " | |
http_code: %{http_code}\n\ | |
http_version: %{http_version}\n\ | |
num_connects: %{num_connects}\n\ | |
remote_ip: %{remote_ip}\n\ | |
size_download: %{size_download}\n\ | |
size_header: %{size_header}\n\ | |
size_request: %{size_request}\n\ | |
speed_download: %{speed_download}\n\ | |
time_namelookup: %{time_namelookup}\n\ | |
time_connect: %{time_connect}\n\ | |
time_appconnect: %{time_appconnect}\n\ | |
time_pretransfer: %{time_pretransfer}\n\ | |
time_redirect: %{time_redirect}\n\ | |
time_starttransfer: %{time_starttransfer}\n\ | |
———\n\ | |
time_total: %{time_total}\n" > /tmp/curl_format.txt | |
curl -w "@/tmp/curl_format.txt" -o /dev/null -s http://google.com.pe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment