Handle Gzip
curl will automatically decompress the response if you set the --compressed
flag:
curl --compressed "http://example.com"
You can find out if the response is compressed by looking at the Content-Encoding
header.
curl will automatically decompress the response if you set the --compressed
flag:
curl --compressed "http://example.com"
You can find out if the response is compressed by looking at the Content-Encoding
header.