Forum Discussion
JuZ0
2 years agoContributor
You can use java.net.URLEncoder to encode values in URLencoding format
java.net.URLEncoder.encode("Value", "UTF-8")
Set POST request mediatype to application/x-www-form-urlencoded
Then in payload field enter
yourkey1=${=java.net.URLEncoder.encode("yourvalue1", "UTF-8")}&yourkey2=${=java.net.URLEncoder.encode("yourvalue2", "UTF-8")}
This way you can utilize SoapUI capability to dynamically alter values through injected Java / Groovy code. In this case java.net.URLEncoder will take care of encoding any values that you need to convert to URL encoded format.
Related Content
- 2 years ago
- 5 years ago
- 4 years ago
- 8 years ago
Recent Discussions
- 15 years ago