curl test https redirect

October 30, 2012

Testing an https redirect

In this example we will be testing an https redirect via curl

curl test https redirect

Syntax

curl -k --head http://someurl

Example

[root@interweb ~]# curl -k --head http://chase.com
HTTP/1.1 301 Moved Permanently
Connection: close
Location: https://www.chase.com/

[root@interweb ~]#