curl usage

curl -IL “URL”

this will send a HEAD request (-I), follow through all redirects (-L), and display some useful information in the end.

you can get more with GET request:

curl -sL -w "%{http_code} %{url_effective}\\n" "URL" -o /dev/null
  • url_effective
  • http_code
  • http_connect
  • time_total
  • time_namelookup
  • time_connect
  • time_pretransfer
  • time_redirect
  • time_starttransfer
  • size_download
  • size_upload
  • size_header
  • size_request
  • speed_download
  • speed_upload
  • content_type
  • num_connects
  • num_redirects
  • ftp_entry_path

Leave a Reply

Your email address will not be published. Required fields are marked *