title: HTTP GET request always returns 301
body: <p>I'm trying to obtain the HTML dump of some RFC's from IETF website, via a simple GET request. However, it responds with status code 301. I'm making use of <code>netcat</code> to simulate the HTTP GET request with the following command :</p>
  <pre><code>$ printf 'GET /html/rfc3986 HTTP/1.1\r\nHost: tools.ietf.org\r\nConnection: close\r\n\r\n' | nc tools.ietf.org 80
  </code></pre>
  <p>The following reply is obtained as a result of the above command :</p>
  <pre><code>HTTP/1.1 301 Moved Permanently
  Date: Wed, 09 Sep 2020 15:36:36 GMT
  Server: Apache/2.2.22 (Debian)
  Location: https://tools.ietf.org/html/rfc3986
  Vary: Accept-Encoding
  Content-Length: 323
  Connection: close
  Content-Type: text/html; charset=iso-8859-1
  X-Pad: avoid browser bug
  
  &lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML 2.0//EN&quot;&gt;
  &lt;html&gt;&lt;head&gt;
  &lt;title&gt;301 Moved Permanently&lt;/title&gt;
  &lt;/head&gt;&lt;body&gt;
  &lt;h1&gt;Moved Permanently&lt;/h1&gt;
  &lt;p&gt;The document has moved &lt;a href=&quot;https://tools.ietf.org/html/rfc3986&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
  &lt;hr&gt;
  &lt;address&gt;Apache/2.2.22 (Debian) Server at tools.ietf.org Port 80&lt;/address&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  <p>However, if I try to send a <code>HTTP/1.0</code> based <code>HEAD</code> request to the <code>Location</code> value determined in the above reply, I get status 404 in reply. I made use of <code>HEAD</code> method just to check the status code of the reply.</p>
  <p>Command :</p>
  <pre><code>printf 'HEAD https://tools.ietf.org/html/rfc3986 HTTP/1.0\r\n\r\n' | nc tools.ietf.org 80
  </code></pre>
  <p>Reply:</p>
  <pre><code>HTTP/1.1 404 Not Found
  Date: Wed, 09 Sep 2020 16:32:18 GMT
  Server: Apache/2.2.22 (Debian)
  Vary: accept-language,accept-charset,Accept-Encoding
  Accept-Ranges: bytes
  Connection: close
  Content-Type: text/html; charset=iso-8859-1
  Content-Language: en
  Expires: Wed, 09 Sep 2020 16:32:18 GMT
  </code></pre>
  <p>Is there a mistake in the way I'm making use of <code>GET</code> method to obtain the results?</p>