sahaya / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Rest Assured - can't POST with Parameters and Body #196

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Post to a URL containing a parameter with body content

What is the expected output? What do you see instead?
This is expected to work, testing manually works. Instead the following error 
is thrown:
"You can either send parameters OR body content in the POST, not both!"

What version of the product are you using? On what operating system?
Using Im using Rest Assured 1.1.6, which is rather old. However, looking at the 
code on github this still appears to be an issue

Please provide any additional information below.
Stack overflow post: 
http://stackoverflow.com/questions/12101297/rest-assured-cant-post-with-paramete
rs-and-body

Original issue reported on code.google.com by JaccoZi...@gmail.com on 27 Aug 2012 at 10:17

GoogleCodeExporter commented 9 years ago
This has been fixed a long time ago, please update REST Assured to the latest 
version. As a work-around maybe you can use "given().queryParam(..)..". See 
answer at stackoverflow.

Original comment by johan.ha...@gmail.com on 28 Aug 2012 at 6:31