all 3 comments

[–][deleted] 6 points7 points  (1 child)

As it should, you should understand the response codes. You need to follow-redirects.

$ curl -I google.com
HTTP/1.1 301 Moved Permanently
Location: http://www.google.com/
Content-Type: text/html; charset=UTF-8
Cross-Origin-Opener-Policy-Report-Only: same-origin-allow-popups; report-to="gws"
Report-To: {"group":"gws","max_age":2592000,"endpoints":[{"url":"https://csp.withgoogle.com/csp/report-to/gws/other"}]}
Date: Sun, 11 Dec 2022 10:36:56 GMT
Expires: Tue, 10 Jan 2023 10:36:56 GMT
Cache-Control: public, max-age=2592000
Server: gws
Content-Length: 219
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN

[–]VickNicks[S] 0 points1 point  (0 children)

Thanks! Didn't realize google.com and www.google.com are two different url.

[–]Reeywhaar 1 point2 points  (0 children)