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.
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.