redirect browser in SimpleHTTPServer.py?
问题 I am partially through implementing the functionality of SimpleHTTPServer.py in Scheme. I am having some good fun with HTTP request/response mechanism. While going through the above file, I came across this- " # redirect browser - doing basically what apache does" in the code". Why is this redirection necessary in such a scenario? 回答1: Imagine you serve a page http://mydomain.com/bla that contains <a href="more.html">Read more...</a> On click, the user's browser would retrieve http://mydomain