title: How to send data in jsoup connection?
body: <p>I need to send data in jsoup connection request. This is the Form Data that I can see in chrome developer console.</p>
  
  <p><code>{"method":"Catalog.search","params":{"pag":1,"business_url":"electrodomesticos","category_url":"climatizacion","subcategory_url":"","valmin":-1,"valmax":-1}}</code></p>
  
  <p>This is my code for doing this </p>
  
  <pre><code>    String phpUrl = "url of .php";
      Connection conn = Jsoup.connect(phpUrl).userAgent("Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36").referrer(referer).maxBodySize(0).timeout(Main.TIMEOUT);
  
      Map  &lt;String,String&gt;  myMap= new HashMap &lt;String, String&gt;();
      myMap.put("method", "Catalog.search");
      //myMap.put("params", "{}");
      myMap.put("pag", "1");
      myMap.put("business_url", "electrodomesticos");
      myMap.put("category_url", "climatizacion" );
      myMap.put("subcategory_url", "" );
      myMap.put("valmin", "-1" );
      myMap.put("valmax", "-1");
      conn.data(myMap);
      conn.post();
      Connection.Response respon = conn.execute();
  </code></pre>
  
  <p>I tried few more combinations but I aways get http 500 error. I know that my syntax is wrong. So please can somebody tell me the right syntax to send that data.</p>