I dont see any options i need to put json body in my get request
Asked
Active
Viewed 6,630 times
2 Answers
4
That is because GET should not have body by the definition. For GET all parameters should be inside URL (path and querystring) and Headers. If you need to have a body you should use POST or PUT.

Irek L.
- 316
- 1
- 6
-
2This is not correct. New RFCs 7230-7237 quote "A payload within a GET request message has no defined semantics; sending a payload body on a GET request might cause some existing implementations to reject the request". But SOAPUI still don't support it. – mondaka Oct 13 '20 at 07:35
1
I think you a confusing GET and POST.
http://hostname/path?param1=value1¶m2=value2¶m3=value3
This is a GET string. There is no body. All parameters are delivered as a part of the GET string. Everything after "?" are considered parameters, and they are separated by "&" and name-value pairs are separated by "="
If you have a JSON body, that you want to submit, you need to do a POST. Once you have created a REST teststep, which is configured to do a POST, the textbox for editing your body should show up as expected.

Steen
- 853
- 5
- 12
-
I m not confusing this i only though that i can pass search criteria in request body. But i can do this in request params. Its ok now – K4mczi Dec 12 '18 at 13:43