HTTP: 301-Permanently Moved redirects me to original address? -
i'm using telnet first time , trying connect webpage: http://net.cs.uni-bonn.de/de/wg/cs/lehre/ws-201415/sysprog. that, i've given following input on command line:
telnet net.cs.uni-bonn.de 80
telnet connects , put in following request:
get /de/wg/cs/lehre/ws-201415/sysprog http/1.1 host: 127.0.0.1
then, telnet returns following:
http/1.1 301 moved permanently date: wed, 12 nov 2014 13:37:06 gmt server: apache/2.2.3 (centos) location: http://net.cs.uni-bonn.de/de/wg/cs/lehre/ws-201415/sysprog cache-control: max-age=360 expires: wed, 12 nov 2014 13:43:06 gmt content-length: 388 content-type: text/html; charset=iso-8859-1 <!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://net.cs.uni-bonn.de/de/wg/cs/lehre/ws-201415/sysprog">here</a>.</p> <hr> <address>apache/2.2.3 (centos) server @ <a href="mailto:webmaster-4@cs.uni-bonn.de">127.0.0.1</a> port 80</address> </body></html>
any idea why i'm getting 301 error? i'm confused, because new redirect address being given exact same address i've put in, , address has content when open in web browser. can open other websites same syntax, have able call website assignment, i'd know why error might happening , how around it... thanks!
telnet net.cs.uni-bonn.de 80
telnet connects , put in following request:
/de/wg/cs/lehre/ws-201415/sysprog http/1.1 host: 127.0.0.1
telnet first resolves domain name ip address, , uses ip address connect server. many servers serve more 1 domain name same ip, why need supply meaningful host:
header:
host: net.cs.uni-bonn.de
without this, server has no idea domain name request meant for.
in particular case, server know, redirecting because http request malformed.
Comments
Post a Comment