I seem to have been writing a lot of shell scripts to do things with curl lately, and the main difference with piping curl’s output to somewhere rather than just looking at it on the screen is that curl will then start outputting a whole bunch of progress information that you don’t usually see. This can be frustrating if you wanted the same output as it viewed on the command line, or (as in my case) just wanted to grep for something in the header output.
To silence the additional output, use the -s switch – but be aware that this will also silence any error messages as well! Something like this:
curl -s http://lornajane.net | grep PHP
This will enable you pass into grep just the output you would usually see on your terminal. Hope this is useful to someone!