function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
demo striimdemo striim 

'%' character in password

Hi, everyone
I am doing an http request to get an access token by providing username ,password+securitytoken,clientid and client secret.
when i am keeping my password without '%' character,I get an json object in return and i can retrieve access token from there.
But when i am keeping my password containing '%', i donot get any access token,instead i get following response from salesforce:
HttpResponseProxy{HTTP/1.1 500 Server Error [Set-Cookie: BrowserId=xsLele0JRxq3iMSEHJEOfQ;Path=/;Domain=.salesforce.com;Expires=Sun, 06-May-2018 08:52:16 GMT;Max-Age=5184000, Strict-Transport-Security: max-age=31536000; includeSubDomains, X-Content-Type-Options: nosniff, X-XSS-Protection: 1; mode=block, Content-Security-Policy: upgrade-insecure-requests , Cache-Control: no-cache,must-revalidate,max-age=0,no-store,private, Content-Type: text/html; charset=UTF-8, Connection: close] ResponseEntityProxy{[Content-Type: text/html; charset=UTF-8,Chunked: false]}}

<html>
<head><title>An internal server error has occurred</title></head>
<body>


<div style="display:none;" id="errorTitle">An internal server error has occurred</div>
<div style="display:none;" id="errorDesc">An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact <a href="https://help.salesforce.com/apex/hthome">Salesforce Support</a>. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience. <br/><br/>Thank you again for your patience and assistance. And thanks for using salesforce.com!</div>
<table cellspacing=10>
<tr><td><span style="font-weight: bold; font-size: 12pt;">An internal server error has occurred</span></td></tr>
<tr><td>
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact <a href="https://help.salesforce.com/apex/hthome">Salesforce Support</a>. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience. <br/><br/>Thank you again for your patience and assistance. And thanks for using salesforce.com!
<br><br>
Error ID: 918501765-6908 (790378106)
</td>
</tr>
<tr><td>
<br clear="all"><br><br>


</td></tr>
</table>

</td></tr>
</table>



</body>
</html> 


If someone has faced this issue. Then kindly share the solution.Thanks for you time .
GauravGargGauravGarg
Hi,

While passing Passwords are parameter in API call, following characters wont work:
  1. @
  2. #
  3. $
  4. %
  5. &
  6. *
Please try using 
  1. !
  2. _

Hope this helps !

Thanks,

Gaurav
skype: gaurav62990

demo striimdemo striim
Thanks Gaurav
demo striimdemo striim
Gaurav, do you have any idea like why does these characters supports when we give input through UI , but doesnot support if we give it through HTTP request. 
GauravGargGauravGarg
Demo,

No, it is work like that. You can open a request with salesforce for more infor.