Skip to content

Instantly share code, notes, and snippets.

@heskyji
Forked from chrisiona/ttfb.sh
Last active March 29, 2017 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save heskyji/e37cbcf9cc6360fc06a0 to your computer and use it in GitHub Desktop.
Save heskyji/e37cbcf9cc6360fc06a0 to your computer and use it in GitHub Desktop.
TTFB – Bash script that returns interesting information about a HTTP/S call
#!/bin/bash
# Returns interesting information about a HTTP/S call
# http://chrisiona.com/post/125309997618/ttfb-a-bash-script-that-returns-interesting
curl -so /dev/null \
-w "%{http_code}\tPre-Transfer: %{time_pretransfer}\tStart Transfer: %{time_starttransfer}\tTotal: %{time_total}\tSize: %{size_download}\n" \
$1
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment