Skip to content

Instantly share code, notes, and snippets.

@jocafa
Created April 12, 2014 02:05
Show Gist options
  • Save jocafa/10514975 to your computer and use it in GitHub Desktop.
Save jocafa/10514975 to your computer and use it in GitHub Desktop.
curling
# I need to "curl -I" the result of the following series of pipes:
curl -s -D http://www.gtfs-data-exchange.com/agency/utah-transit-authority/latest.zip | grep Location | cut -d" " -f2
# Note: gtfs-data-exchange.com doesn't play nice with HEAD, but a request for .../latest.zip will *always* spit back a redirect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment