How to use curl to get http response status code only
curl -sL -w "%{http_code}" -I "www.google.com" -o /dev/null
Written by JP Melanson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Http
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#