title: How to write a web server to handle post (content-type is application/json) in python?
body: <p>Here comes the detail:</p>
  
  <p>We want to write a web server in Python v2.6.5, and have finished the <code>do_GET</code> method.</p>
  
  <p>But I don't know how to write the <code>do_POST()</code> method. </p>
  
  <p>If the post request goes like the following:</p>
  
  <pre><code>POST /employee/111 HTTP/1.1
  Content-Type: application/json
  Content-Length: XX
  
  {"name": "John"}
  </code></pre>
  
  <p>How to get the JSON data <code>{"name": "John"}</code> in <code>do_POST()</code> method?
  (prefer standard library)</p>
  
  <p>It'd be greatly appreciated if you can eloborate why and give a sample.</p>
  
  <p>Thank you!</p>