Search code examples
httpgettelnethttp-status-code-301

When using telnet get request on the website weer.nl - I get a 301 error that I can't fix


Link to photo of terminal

I am trying to get the header of from the webpage www.weer.nl. However it only returns a 301 Moved Permanently error and does not print any header to terminal.

How can I fix this?

The link shows when I enter into terminal - telnet weer.nl 80 HEAD / HTTP/1.1 Host: weer.nl

it what is circled is what is outputted back.

2nd Attempt


Solution

  • 301 Moved Permanently error

    Moved Permanently is not an error.

    does not print any header to terminal

    Wrong. Your screenshot clearly shows it outputting 6 headers: Including the Location header which tells you the URL that it has moved to and which you should be requesting.