Added -f (--fail) to curl