# How do I stop URL forward slash from being encoded?

**URL:** <https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215>\
**Category:** ReadyAPI\
**Tags:** readyapi, api, migrated\
**Created:** [October 20, 2015, 3:27pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215 "2015-10-20T15:27:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 20, 2015, 3:27pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/1 "2015-10-20T15:27:11Z")

</div>

> Originally posted by **waynemmn** on October 20, 2015

I am creating some new tests calling a new rest end point.

I need to call the endpoint like this.

[http://cit2.iam-secure.aaaaaa.com/bestbuy/transactions/online-transactions/20151020^960^960^48624024](http://cit2.iam-secure.aaaaaa.com/bestbuy/transactions/online-transactions/20151020%5E960%5E960%5E48624024)

but I am getting some forward slashes encoded like this.

[http://cit2.iam-secure.aaaaaaaa.com/bestbuy%2Ftransactions/online-transactions%2F20151020^960^960^48624024}](http://cit2.iam-secure.aaaaaaaa.com/bestbuy%2Ftransactions/online-transactions%2F20151020%5E960%5E960%5E48624024%7D)

How do I stop this??

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 21, 2015, 2:36pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/2 "2015-10-21T14:36:26Z")

</div>

> Originally posted by **nmrao** on October 21, 2015

Not tried ever. But worth trying to put the value in a custom property and see that works.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 21, 2015, 2:54pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/3 "2015-10-21T14:54:37Z")

</div>

> Originally posted by **waynemmn** on October 21, 2015

The first part of the URL is indeed a custom property that is used in the Path: varialbe of the form builder. It is referenced like this. ${#Project#TransactionPath} and it is getting encoded in the actual URL call.

Like this.

bestbuy%2Ftransactions

but this is not happening for all of my tests..

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 23, 2015, 11:38pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/4 "2015-10-23T23:38:59Z")

</div>

> Originally posted by **SiKing** on October 23, 2015

Did you try disabling encode URL?

[http://www.soapui.org/rest-testing/reference/method-window.html](http://www.soapui.org/rest-testing/reference/method-window.html)

Although I rather suspect your URL is defined wrong. But withouth further information it is hard to tell.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 24, 2015, 4:58am UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/5 "2015-10-24T04:58:29Z")

</div>

> Originally posted by **kondasamy** on October 23, 2015

If the value supplied in PATH/ TEMPLATE parameter is passed in the URL, then it is expected behavior that it gets encoded like this. I don’t think SoapUI does different on this,

[http://cit2.iam-secure.aaaaaaaa.com/bestbuy%2Ftransactions/online-transactions%2F20151020%5E960%5E96…](http://cit2.iam-secure.aaaaaaaa.com/bestbuy%2Ftransactions/online-transactions%2F20151020%5E960%5E960%5E48624024%7D)

From the above URL, the RED highlighted items should be PATH parameter. If you edit in WADL/ WSDL to supply as different PATH parameters, I guess we can eradicate this problem.

Thanks,

Samy

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 26, 2015, 1:42pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/6 "2015-10-26T13:42:19Z")

</div>

> Originally posted by **waynemmn** on October 26, 2015

* * *

kondasamy wrote:

> “If the value supplied in PATH/ TEMPLATE parameter is passed in the URL, then it is expected behavior that it gets encoded like this. I don’t think SoapUI does different on this,”
> 
> * * *

Many of my other quieres defined like this using a parameter passed in the Path variable are not encoded so I do not know why this one is.

???

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 26, 2015, 1:45pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/7 "2015-10-26T13:45:56Z")

</div>

> Originally posted by **waynemmn** on October 26, 2015

> * * *
> 
> SiKing wrote:
> 
> Did you try disabling encode URL?
> 
> [http://www.soapui.org/rest-testing/reference/method-window.html](http://www.soapui.org/rest-testing/reference/method-window.html)
> 
> Although I rather suspect your URL is defined wrong. But withouth further information it is hard to tell.
> 
> * * *

> * * *
> 
> SiKing wrote:
> 
> Did you try disabling encode URL?
> 
> [http://www.soapui.org/rest-testing/reference/method-window.html](http://www.soapui.org/rest-testing/reference/method-window.html)
> 
> Although I rather suspect your URL is defined wrong. But withouth further information it is hard to tell.
> 
> * * *

I am using SoapUI NG and I do not see a place to turn off URL encoding??

How could my URL be defined incorrectly?

If I run this exact same URL via Postman manually without encoding the request works correctly.

but with the encoding I receive the error.

I am trying to turn off encoding but I can not find out where to do this.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 26, 2015, 2:00pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/8 "2015-10-26T14:00:51Z")

</div>

> Originally posted by **SiKing** on October 26, 2015

> * * *
> 
> waynemmn wrote:
> 
> > * * *
> 
> I am trying to turn off encoding but I can not find out where to do this.
> 
> * * *

[http://www.soapui.org/rest-testing/reference/method-window.html](http://www.soapui.org/rest-testing/reference/method-window.html)

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 26, 2015, 4:41pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/9 "2015-10-26T16:41:00Z")

</div>

> Originally posted by **kondasamy** on October 26, 2015

It sounds to be unusual in your case! Eventually, I have found the option to turn off auto encoding of the URI under **Preferences → HTTP** (PFB the pic. for your ref.),

Please share if you got any positive result!

Thanks,

Samy

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 26, 2015, 5:48pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/10 "2015-10-26T17:48:01Z")

</div>

> Originally posted by **SiKing** on October 26, 2015

Two different things!

One (yours) is for encoding a provided URL, the other (mine) is for encoding one particular parameter.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 27, 2015, 4:11am UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/11 "2015-10-27T04:11:25Z")

</div>

> Originally posted by **kondasamy** on October 26, 2015

Yes I agree! I guess you mean the encoding option avaialble under default properties for the particular REST method/ test step! Correct?

Thanks,

Samy

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 27, 2015, 1:10pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/12 "2015-10-27T13:10:22Z")

</div>

> Originally posted by **waynemmn** on October 27, 2015

When I attempt to turn off URL encoding like this, my comeplete evenironment gets locked up and I eventually need to kill the Ready API dev environment.

☹

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 27, 2015, 1:20pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/13 "2015-10-27T13:20:16Z")

</div>

> Originally posted by **waynemmn** on October 27, 2015

Soap UI in Ready API does not have a way to turn off encoding for each Rest call that I can find.

See attached image.

There is only a way to turn it off for the entire project and my project locks up when I attempt to set that.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 27, 2015, 1:33pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/14 "2015-10-27T13:33:27Z")

</div>

> Originally posted by **waynemmn** on October 27, 2015

I see on thing that is happening for this Request.

In the fom view, my path is defined like this.

${#Project#TransactionPath} with an actual value of this bestbuy/transactions.

If I define my entity like this:

online-transactions/abcd

Having it defined like this builds the URL like this.

[http://cit2.iam-secure.bestbuy.com/bestbuy/transactions/online-transactions/abcd](http://cit2.iam-secure.bestbuy.com/bestbuy/transactions/online-transactions/abcd)

but my last item “abcd” is a data item that is actually defined like this “20151019^960^960^40615329”

So when I enter a value like this into the entity field

then my URL become like this

[http://cit2.iam-secure.bestbuy.com/bestbuy%2Ftransactions/online-transactions%2F20151019^960^960^40615329](http://cit2.iam-secure.bestbuy.com/bestbuy%2Ftransactions/online-transactions%2F20151019%5E960%5E960%5E40615329)

When I go ahead and encode my query value like this: 20151019%5E960%5E960%5E40615329

Then the one slash in my path still get encoded.

[http://cit2.iam-secure.bestbuy.com/bestbuy%2Ftransactions/online-transactions/20151019^960^960^40615329](http://cit2.iam-secure.bestbuy.com/bestbuy%2Ftransactions/online-transactions/20151019%5E960%5E960%5E40615329)

☹

I can’t seem to turn off encoding!!

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [November 3, 2015, 1:47pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/15 "2015-11-03T13:47:13Z")

</div>

> Originally posted by **waynemmn** on November 03, 2015

No resolution on this yet.

Does anyone have any help or insight?

Is there a way to encode just the data part of the url so that it does not force encoding the rest of the url??

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [November 3, 2015, 1:59pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/16 "2015-11-03T13:59:15Z")

</div>

> Originally posted by **GillerM** on November 03, 2015

Yes. Just encode the part of the URL with the TEMPLATE parameter - [http://readyapi.smartbear.com/structure/parameters/template](http://readyapi.smartbear.com/structure/parameters/template)

Then the slash would be around the TEMPLATE param and will not be encoded

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [November 3, 2015, 2:49pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/17 "2015-11-03T14:49:43Z")

</div>

> Originally posted by **waynemmn** on November 03, 2015

I am already using a template for both the Path Section of the URL and the Entitiy Portion.

See attached image.

If the data portion of the URL has the character “^” in the data. like this.

20151103^960^960^104521

Then the Path part and the entity part get encoded.

[http://cit2.iam-secure.bestbuy.com/bestbuy%2Ftransactions/online-transactions%2F20151103^960^960^102658](http://cit2.iam-secure.bestbuy.com/bestbuy%2Ftransactions/online-transactions%2F20151103%5E960%5E960%5E102658)

If I replace the “^” with an "\_"then nothing gets encoded.

[http://cit2.iam-secure.bestbuy.com/bestbuy/transactions/online-transactions/20151103\_960\_960\_104521](http://cit2.iam-secure.bestbuy.com/bestbuy/transactions/online-transactions/20151103_960_960_104521)

I am not sure how you think using templates will stop this???

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [November 3, 2015, 4:07pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/18 "2015-11-03T16:07:48Z")

</div>

> Originally posted by **SiKing** on November 03, 2015

Your parameter “entity” has a slash in it! You are either going to get the whole parameter encoded or nothing.

You need to break this up into two parameters, maybe: “entitypre” and “entitypost”, or something. The separating slash between parameters will not be encoded, but the two \_parts\_ will.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [November 3, 2015, 9:42pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/19 "2015-11-03T21:42:20Z")

</div>

> Originally posted by **waynemmn** on November 03, 2015

ok ok,

Your answer got me thinking and I finally was able to resolve this.

I broke the URL up into 4 seperate Parameters so there was no slash (/) in any value and then I placed the final data portion of the URL (20151103^960^960^103694) in it’s own parameter.

Only that final portion got encoded and that is what this query needed.

Thanks everyone for your help!!

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 7, 2026, 5:13pm UTC](https://community.smartbear.com/t/how-do-i-stop-url-forward-slash-from-being-encoded/215/20 "2026-10-07T17:13:44Z")

</div>

Closed on October 7, 2026, 5:13pm UTC

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
