Pejman Moghadam / General

CURL examples

Public domain

Track web redirects

curl -v -Ls  -o /dev/null

-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 -

-D  Write the protocol headers to the specified file.


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

Pejman Moghadam / General [ TXT ]