Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 2504

URL encoding for API

$
0
0

I am using TRestClient and TRestRequest to send a Get request to an API.  The API has a parameter of username and password.  However, my password contains a plus sign (+).  So I use HTTPEncode to URL encode the password (changes the plus sign to %2B).  However, it still does not work.  If I change my password and take out the plus sign, the request works fine.  However, I may have other users that will have characters in their password that will need to be URL encoded.  Is there something else I need to do to have TRestRequest use the URL encoded password?


Viewing all articles
Browse latest Browse all 2504

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>