soapui
soapui copied to clipboard
Rest call containing text '${' is not working as expected
I was sending data to server through post call and when my XML/JSON contains '$' and '{' together like '${', server rejects the request. But the same works with RestMan and PostMan. Issue can be replicated by modifying any request body to have '${' together
Sample API :- https://reqres.in/api/users - Method- POST , headers---> Content-Type application/json; Request Body 1: - { "name": "morpheus", "job": "leader" }
Request Body 2:- { "name": "morpheus", "job": "${leader" }
For Request Body 1, user gets created but for Request Body 2 i'm getting the following response
Bad Request
#The same request body works well with postman and RestMan.
please try to encode $ symbol