title: put parameters ignored rest assured
body: <p>(solved): That's because the default parameter types for PUT is request parameters and not form parameters. Change "parameters(..)" to "formParameters(..)" and it'll work.</p>
  
  <p>My code:
  JUNIT test: (figure 1)</p>
  
  <pre><code>expect().statusCode(Status.NO_CONTENT.getStatusCode())
          .given()
          .parameters("name", name, "URL", URL)
          .cookie(cookie_name, newapi_session_id)
          .put("/IfdOrganization/"+orgGuid);
  </code></pre>
  
  <p>Server code: (figure 1)</p>
  
  <pre><code>@PUT @Path("/IfdOrganization/{guid}") @Produces({APPLICATION_XML, APPLICATION_JSON})
  public void update(@PathParam("guid") String guid, @FormParam("name") String name,@FormParam("URL") String URL,@CookieParam(session_cookie_name) String sessionId, @Context HttpHeaders headers) {
  }
  </code></pre>
  
  <p>The problem:
  When doing a PUT in my JUnit test the parameters "name" and "URL"' value are null on the server (figure 1). If I change ".put()" to ".post()" on the JUnit test and change "@PUT" to "@POST" on the server the parameters' value is correct (figure 2). Also, when using PUT in AJAX, the parameters gets the correct value, which means that the problem not comes from the server. </p>
  
  <p>I am using
  eclipse kepler, windows 8 and rest-assured-1.8.0</p>
  
  <p>JUNIT test: (figure 2)</p>
  
  <pre><code>expect().statusCode(Status.NO_CONTENT.getStatusCode())
              .given()
              .parameters("name", name, "URL", URL)
              .cookie(cookie_name, newapi_session_id)
              .post("/IfdOrganization/"+orgGuid);
  </code></pre>
  
  <p>Server code: (figure 2)</p>
  
  <pre><code>@POST @Path("/IfdOrganization/{guid}") @Produces({APPLICATION_XML, APPLICATION_JSON})
  public void update(@PathParam("guid") String guid, @FormParam("name") String name,@FormParam("URL") String URL,@CookieParam(session_cookie_name) String sessionId, @Context HttpHeaders headers) {
  }
  </code></pre>
  
  <p>Any help appreciated</p>