I am trying to get access token from salesforce to access apex rest API. For this i am trying to get access token by sending request to
https://login.salesforce.com/services/oauth2/token
I am setting all required headers
grant_type: password
username: ****UserName****
password: ***********
client_id: 3MVG9ZL0ppGP5UrAK9L_2UlHYraxj5LVGwS1B_vyAIzVVE4jOdt4i.aJCYuioKS7VsCuokwWAm2uIZKSms
client_secret: 543527409660481357
Content-Type : multipart/form-data
I am trying to connect form chrome rest client>But i am getting error saying
<html><body><table cellspacing=10>
<tr><td><span style="font-weight: bold; font-size: 12pt;">Illegal Request</span></td></tr>
<tr><td>You have sent us an Illegal URL or an improperly formatted request. </td></tr>
<tr><td></td></tr>
</table>
<!-- Body events -->
<script type="text/javascript">function bodyOnLoad(){if(window.PreferenceBits){window.PreferenceBits.prototype.csrfToken="null";};}function bodyOnBeforeUnload(){}function bodyOnFocus(){}function bodyOnUnload(){}</script>
</body>
</html>
I have created connected app and given all related details in headers too while requesting for token
But i am confused about CallBackURL. What exactly should i give for this CallBackURL while accessing service from chrome rest client