Pejman Moghadam / General

CURL examples

Public domain


Track web redirects

curl -v -Ls  -o /dev/null pmoghadam.com

-L         Follow redirects
-s         Silent mode. Don't show progress meter or error messages. 
-o FILE    Write output to <file> instead of stdout
-v         verbose

Check HTTP headers

curl -Ls -o /dev/null -D - pmoghadam.com

-D  Write the protocol headers to the specified file.

Links

http://www.codediesel.com/tools/6-essential-curl-commands/

BY: Pejman Moghadam
TAG: curl
DATE: 2015-01-14 14:39:56


Pejman Moghadam / General [ TXT ]