Straight from a Google search for the keyword "does get method have body"
The HTTP GET method is used to request a resource from the server.
Requests using GET method should only retrieve data (the server must not change its state).
If you want to change data on the server, use POST, PUT, PATCH or DELETE methods. The GET requests cannot have a message body.
Thank you Rex,
We have a GET Method which retrieve data but also have to pass an xml body (not sure why it's developed this way). I will talk with dev team to see if we can use parameter instead or if they can change it. Postman allows to add a body in the GET request so I thought maybe we can have similar option.
Hasib,
Would it be possible to send us a video highlighting how this works on your side? Basically to show the below:
1- Usage in both Postman and SoapUI (How you create query and put your XML)
2- Display whether the results are really different if you provide body parameters or not.
Regards,
Subject7 Team
Hi Joesph,
I just spoke to dev team and they found it it's not a good practice to pass body in the GET request. They are going to change the service either a POST (if it's search) or GET with parameters.
For now it's a low priority so it's OK if the GET request doesn't accept body.
Please sign in to leave a comment.