Skip to content

Instantly share code, notes, and snippets.

@jasalo
Created March 10, 2020 20:55
Show Gist options
  • Save jasalo/671f1e8461d84a2f020aaa4651e2df21 to your computer and use it in GitHub Desktop.
Save jasalo/671f1e8461d84a2f020aaa4651e2df21 to your computer and use it in GitHub Desktop.
Obtain 302 final redirect URL
curl "<URL>" --output /dev/null --write-out "It took %{num_redirects} redirect/redirects to get %{url_effective}\n" -L
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment