curl test https redirect

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 ~]#

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.