Test HTTP redirect with curl from shell

Command:
curl -s -L -D - http://basvanbeek.nl/ -o /dev/null -w '%{url_effective}'

Returns:
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Mon, 15 Apr 2019 10:29:08 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive
Location: https://basvanbeek.nl/
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: no-referrer-when-downgrade
Feature-Policy: geolocation 'none';midi 'none';sync-xhr 'none';microphone 'none';camera 'none';magnetometer 'none';gyroscope 'none';speaker 'self';fullscreen 'self';payment 'none';

HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Mon, 15 Apr 2019 10:29:09 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Expires: Mon, 15 Apr 2019 11:29:09 GMT
Cache-Control: max-age=3600
X-Redirect-By: WordPress
Location: https://www.basvanbeek.nl/
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: no-referrer-when-downgrade
Feature-Policy: geolocation 'none';midi 'none';sync-xhr 'none';microphone 'none';camera 'none';magnetometer 'none';gyroscope 'none';speaker 'self';fullscreen 'self';payment 'none';

HTTP/1.1 200 OK
Server: nginx
Date: Mon, 15 Apr 2019 10:29:09 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 142399
Last-Modified: Mon, 15 Apr 2019 07:40:29 GMT
Connection: keep-alive
Vary: Accept-Encoding
ETag: "5cb4356d-22c3f"
Vary: Accept-Encoding, Cookie
Cache-Control: no-cache, no-store, must-revalidate
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: no-referrer-when-downgrade
Feature-Policy: geolocation 'none';midi 'none';sync-xhr 'none';microphone 'none';camera 'none';magnetometer 'none';gyroscope 'none';speaker 'self';fullscreen 'self';payment 'none';
Accept-Ranges: bytes

https://www.basvanbeek.nl/
Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp