How to handle URL with special characters present in password in Postman?

Nabin picture Nabin · Apr 22, 2018 · Viewed 17.5k times · Source

I have the following format in URL.

http://username:[email protected]/some/url

Here password is something like qDTA*$X)ME/74. When I directly use this password in URL, then the postman does not respond. How should I proceed testing this url?

(In the image the response container is plain white without any error. This indicates, the API was never hit) enter image description here

Answer

Danny Dainton picture Danny Dainton · Apr 22, 2018

You can manually encode parts of the URL within the application. These are the docs from version 6.

https://learning.postman.com/docs/postman/sending-api-requests/requests/#sending-parameters

Under the URL section:

“Note: Parameters you enter in the URL bar or in the data editor will not automatically be URL-encoded. Right click a piece of selected text, and select “EncodeURIComponent” to manually encode the parameter value.”