def do_POST(self):
    length = int(self.headers.getheader('content-length'))
field_data = self.rfile.read(length)
fields = urlparse.parse_qs(field_data)
Parse http GET and POST parameters from BaseHTTPHandler?