title: Tornado POST 405: Method Not Allowed
body: <p>For some reason, I am not able to use POST methods in tornado.</p>
  <p>Even the <code>hello_world</code> example does not work when I change GET to POST.</p>
  <pre><code>import tornado.ioloop
  import tornado.web
  
  class MainHandler(tornado.web.RequestHandler):
      def post(self):
          self.write(&quot;Hello, world&quot;)
  
  application = tornado.web.Application([
      (r&quot;/&quot;, MainHandler),
  ])
  
  if __name__ == &quot;__main__&quot;:
      application.listen(8888)
      tornado.ioloop.IOLoop.instance().start()
  </code></pre>
  <p>It throws &quot;405 method not allowed&quot;.
  Any suggestions?</p>