Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Don't you need a HandlerClass? Commented Feb 5, 2013 at 18:12
  • isn't that self.do_GET in this case? Commented Feb 5, 2013 at 18:13
  • 1
    Take a look at the documentation for the module you're using :) you're passing in a function when a fully fledged object is expected docs.python.org/2/library/… Commented Feb 5, 2013 at 18:13
  • you could sublcass it and implement do_GET like in this example wiki.python.org/moin/BaseHttpServer Commented Feb 5, 2013 at 18:13