Strony

Saturday, 24 October 2015

Linux - examples of using curl

- Display only headers from the http response
curl -I URL

- Get towards IP using specific "Host" header
curl --header "Host: hostname"  http://IP_Address/path_to_file

- Conditional GET using "ETag"
curl URL --header 'If-None-Match: "aaaaaa-bbbbbbbbbbbbb"'

No comments:

Post a Comment