Skip to content

Instantly share code, notes, and snippets.

@heskyji
Forked from chrisiona/ttfb.sh
Last active March 29, 2017 09:22
Embed
What would you like to do?
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