You could be running a different version of curl, e.g. homebrew. Try `which curl` and `/usr/bin/curl <url>`.