soapui icon indicating copy to clipboard operation
soapui copied to clipboard

Rest call containing text '${' is not working as expected

Open srv1009 opened this issue 6 years ago • 1 comments

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

Error
Bad Request

#The same request body works well with postman and RestMan.

srv1009 avatar Nov 15 '19 15:11 srv1009

please try to encode $ symbol

ReadyAPIAgent avatar Dec 26 '21 19:12 ReadyAPIAgent