You are not logged in.

#1 2017-12-13 20:54:49

ahmed_elsawy
Member
Registered: 2017-12-01
Posts: 4

curl gnu.org is redirecting to http://www.gnu.org?

$ curl gnu.org
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://www.gnu.org/">here</a>.</p>
<hr>
<address>Apache/2.4.7 Server at gnu.org Port 80</address>
</body></html>

The website redirects to http://www.gnu.org which is the same page.

Last edited by ahmed_elsawy (2017-12-13 21:13:02)

Offline

#2 2017-12-13 21:03:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,789

Re: curl gnu.org is redirecting to http://www.gnu.org?

www.gnu.org != gnu.org


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2017-12-13 21:03:16

progandy
Member
Registered: 2012-05-17
Posts: 5,193

Re: curl gnu.org is redirecting to http://www.gnu.org?

gnu.org properly redirects to www.gnu.org (see the www. prefix). curl doesn't automatically follow this, you have to add the parameter "-L" or manually call "curl www.gnu.org"


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

Board footer

Powered by FluxBB