How to provide request body for GET method using Karate API.
When trying to provide Request body for Get method in Karate API, it doesnt take the request and throws 500 status code.
How to provide request body for GET method using Karate API.
When trying to provide Request body for Get method in Karate API, it doesnt take the request and throws 500 status code.
As stated in HTTP GET with request body using the request body within a GET request to change the semantics of the request is highly discouraged.
It's debatable that Karate ignores the message body when using method GET
and if you think there is a use case for that feature your free to file an issue.
Furthermore, the 500
status code you observe is returned by your system under test because of the missing message body and has nothing to do with karate.
EDIT: confirmed that Karate 1.0 will support a body along with a GET