Skip to content

Instantly share code, notes, and snippets.

@kumlali
Last active December 11, 2018 06:04
Show Gist options
  • Save kumlali/afb6bcc9abf52ea2b1a1cf586e6d33f1 to your computer and use it in GitHub Desktop.
Save kumlali/afb6bcc9abf52ea2b1a1cf586e6d33f1 to your computer and use it in GitHub Desktop.
Curl HTTP transaction timing

Curl HTTP transaction timing

By following https://blog.josephscott.org/2011/10/14/timing-details-with-curl/, create curl-format.txt having following lines:

\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
\n

Execute following command inside the directory where curl-format.txt exists:

curl -o /dev/null -s -w "@curl-format.txt" http://eftemkt.tcmb.gov.tr/bankasubelistesi/bankaSubeTumListe.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment