curl command

What is curl command?
-> A command to transfer data from or to a server.

It supports many protocols such as FTP, SFTP, LDAP, TELNET.
The most basic usage is to use HTTP request and standard output.

curl [options] [url]

# Make an HTTP request and put the result on the standard output
$ curl http://target URL

# You can also specify the range using commas and []
$ curl 'http://{one, two, three}.example.com'
$ curl 'http://[1-3].example.com'

# Output execution result to file
$ curl http://Target URL > Output Destination
$ curl -o output destination PATH http://target URL

# Hide progress on file output(error is also hidden)
$curl -s -o output destionation Path http://target URL

# if you want to display the error above
$curl -sS -o output destination PATH http://target URL

# Display progress rate in progress bar
$curl -# -O http://Target URL

# Skip certificate error on SSL connection
$ curl -k https://target URL

# Download with URL filename(The following is saved as index.html)
$ curl -O http://target URL /index.html

# Access via proxy
$ curl -x proxy server: port number --proxy-user username:password http://target URL

# Enable redirection
$ curl -L http://Target URL

# When you resume the download again when you interrupt the download
$ curl -C -http://target URL

# Specification of HTTP method (-X)
$ curl -X PUT http://Target URL

curl -sS -Hは、エラー標示かつhttpヘッダにheader追加?

[vagrant@localhost ~]$ curl --version
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

[vagrant@localhost ~]$ curl -s -w '%{http_code}\n' http://www.amazon.co.jp/dp/B00JEYPPOE/ -o /dev/null
301
[vagrant@localhost ~]$ curl -s -w '%{http_code}\n' http://www.amazon.co.jp/dp/B00JEYPPOE/ -o /dev/null -A ''
301

ん?