title: Put request parameters not getting set
body: <p>This may be standard stuff but unable to get it wokring.
  I'm using <code>org.apache.commons.httpclient.methods</code> for making Http request from my Java code. In one instance I've to make a PUT request and pass some parameters. I'm doing it the following way:</p>
  
  <pre><code>PutMethod putMethod = new PutMethod(url);
  putMethod.getParams().setParameter("param1", "param1Value");
  putMethod.getParams().setParameter("param2", "param2Value");
  httpClient.executeMethod(putMethod);
  </code></pre>
  
  <p>But at the server, when it tries to read these parameters - it can only get <code>null</code>. </p>
  
  <p>However, When I modify my <code>url</code> as <code>url?param1=param1Value&amp;param2=param2Value</code> it works.</p>
  
  <p>How do I get it working using setParameter method?</p>