Extract special character in url

Not applicable

I have a request which comes in below fomat:

/v1/abc/abchfd=

The request has special character = , when I tryt to use extarct message to extract patter and capture abchfd= , it capture only till abchfd excluding = .

It works fine if , my url is encoded i.e /v1/abc/abchfd%3D.

Is there a way to extract special character coming in request url without actually encoding them.

0 2 300
2 REPLIES 2

= is a reserved character when URI encoding, so this shouldn't be possible, nor is it recommended.

Please see:

https://tools.ietf.org/html/rfc3986

https://en.wikipedia.org/wiki/Percent-encoding#Percent-encoding_reserved_characters

Do you have a real example of what you are trying to achieve? It may be that using the Request Payload in a POST is a more suitable solution.

Many thanks, Sean

Hi @akshay.anand9

As @Sean Davis mentioned = is a reserved character and cannot be used in the uri unless it is encoded.

Hence to answer your question there is no other way apart from encoding, if you want to pass it in the uri