# Postman replace spaces with %20 and " with %22 in get. post, put and patch

**URL:** <https://community.postman.com/t/postman-replace-spaces-with-20-and-with-22-in-get-post-put-and-patch/23966>\
**Category:** Help Hub\
**Created:** [May 21, 2021, 12:29pm UTC](https://community.postman.com/t/postman-replace-spaces-with-20-and-with-22-in-get-post-put-and-patch/23966 "2021-05-21T12:29:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevecook428](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@stevecook428](https://community.postman.com/u/stevecook428)\
**Post date:** [May 21, 2021, 12:29pm UTC](https://community.postman.com/t/postman-replace-spaces-with-20-and-with-22-in-get-post-put-and-patch/23966/1 "2021-05-21T12:29:00Z")

</div>

I can successfully execute this with curl:  
curl -u integrator:integrator --basic -k -X PUT [https://192.168.1.53:4001/v1.17/Display/OutputTable/1/Resolution](https://192.168.1.53:4001/v1.17/Display/OutputTable/1/Resolution) --data “value=1280x720”

When I enter the string verbatim in Postman, Postman sends (with post/put or patch)  
[https://192.168.1.53:4001/v1.17/Display/OutputTable/1/Resolution%20--data%20"value=1280x720"](https://192.168.1.53:4001/v1.17/Display/OutputTable/1/Resolution%20--data%20%22value=1280x720%22)

Which fails miserably with “resource does not exist” --\>naturally.

Any clever method to append --data “value=1280x720” without Postman inserting ASCII characters in the string?

Interesting, your web application to submit questions replaces %22 with " You will need to go into edit mode to see where they are present. There are 2.

---

<div class="post-metadata">

**Author:** ![neilstudd](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/neilstudd/32/8213_2.png) [@neilstudd](https://community.postman.com/u/neilstudd)\
**Post date:** [May 21, 2021, 2:28pm UTC](https://community.postman.com/t/postman-replace-spaces-with-20-and-with-22-in-get-post-put-and-patch/23966/2 "2021-05-21T14:28:44Z")

</div>

Hi @stevecook428,

Are you entering that string (including the `--data` part) directly into the address bar in Postman?

The information within the `--data` parameter is **form data** , and as such, when transposing it into Postman you should enter it in the Body section as below:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/f/4/f463ed6a540382f9d75d107a81630dbc78762375.png)

---

<div class="post-metadata">

**Author:** ![stevecook428](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@stevecook428](https://community.postman.com/u/stevecook428)\
**Post date:** [May 21, 2021, 2:53pm UTC](https://community.postman.com/t/postman-replace-spaces-with-20-and-with-22-in-get-post-put-and-patch/23966/3 "2021-05-21T14:53:08Z")

</div>

I was eager to see if that worked.  
In Body, I used Key=value and value=1280x720  
–data"value=1280x720"  
–data “value=1280x720”  
Key=–data and value =“value=1280x720”  
value = value=1280x720  
value = 1280x720  
value = “1280x720"”

I received a resource does not exist (404), still a malformed request.

Any more guidance?

---

<div class="post-metadata">

**Author:** ![neilstudd](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/neilstudd/32/8213_2.png) [@neilstudd](https://community.postman.com/u/neilstudd)\
**Post date:** [May 21, 2021, 2:59pm UTC](https://community.postman.com/t/postman-replace-spaces-with-20-and-with-22-in-get-post-put-and-patch/23966/4 "2021-05-21T14:59:44Z")

</div>

Ah, I think it needs to be `x-www-form-urlencoded` rather than `form-data`.

The easiest way to check this is by using the Import option in Postman; in the “Raw text” tab, you can paste a cURL request directly, and it will import into a matching new Postman request.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/3/1/316fcf5518d65acc7bfe66b9e1df04b6432df920.png)

---

<div class="post-metadata">

**Author:** ![stevecook428](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@stevecook428](https://community.postman.com/u/stevecook428)\
**Post date:** [May 21, 2021, 4:37pm UTC](https://community.postman.com/t/postman-replace-spaces-with-20-and-with-22-in-get-post-put-and-patch/23966/5 "2021-05-21T16:37:19Z")

</div>

YES! That is a fabulous function in Postman. Appreciated!!
