title: how to get POST params with cherrypy
body: <p>In my very simple cherrypy server I try to get the POST data of a request. I've looked around and came up with:</p>
  
  <pre><code>class UpdateScript:
      def index(self):
          cl = cherrypy.request.body.params
          print(cl)
          return ""
      index.exposed = True
  </code></pre>
  
  <p>But all it prints is {}. What am I missing?</p>
  
  <p>Edit: My c# code for sending the post request is:</p>
  
  <pre><code>var client = new WebClient();
  byte[] response = client.UploadData(UpdateScriptUrl, "POST", System.Text.Encoding.ASCII.GetBytes("field1=value1&amp;amp;field2=value2"));
  </code></pre>