Forum Discussion

waynemmn's avatar
waynemmn
Contributor
9 years ago
Solved

How do I stop URL forward slash from being encoded?

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%5E960%5E960%5E48624024

 

but I am getting some forward slashes  encoded like this.

http://cit2.iam-secure.aaaaaaaa.com/bestbuy%2Ftransactions/online-transactions%2F20151020%5E960%5E960%5E48624024%7D

 

How do I stop this??

 

Thank you.

 

 

 

  • SiKing's avatar
    SiKing
    9 years ago

    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.

18 Replies