URL-encoding is a mechanism for encoding information in a API URL. Although it is known as URL-encoding. Another character that has semantic importance in the query string are :,/,?,#,[,],@,|,&,!,=,$,”,*,+ etc which is used to separate the various var=value pairs in the query string. So, these values also need to be used in encoded form. These characters are reserved characters in API for QueryString (API URL).

The HTTP standards basically says if you want to preserve the special characters in the URL , then it should be encoded in the query string.

For e.g: These character can be encoded:

And thus the URL, after encoding, would look like

http://yourdomain.com/api/v2/SendSMS?SenderId=ACCINF&Message=Fast+%26+Furious&MobileNumbers=9739099XXX&ApiKey=%2FVaZBc8NKyN%2BqbGv3A6JN7kM4%3D&ClientId=66c62b5f-be98-496a-a75b-16d8e0c66cde

Tagged:

Leave a Reply

Your email address will not be published. Required fields are marked *