View only response headers
curl -I only retrieves the header of the resource. The ‘I’ is case sensitive.
root@ubnsrv01:/etc/ssl/certs# curl -I https://site3.lab.com HTTP/1.1 200 OK Content-Length: 191 Content-Type: text/html Last-Modified: Thu, 17 Aug 2017 21:14:18 GMT Accept-Ranges: bytes ETag: "40d9a1c99d17d31:0" Server: Microsoft-IIS/7.5 Date: Sat, 02 Sep 2017 22:58:54 GMT
View response headers and content
curl -i includes the HTTP header in the output along with the site content. Since this URL is terminating on an F5, the HTTP header reports that a redirect is configured for this URL but doesn’t redirect it automatically to the URL. The ‘i’ is case sensitive.