Salesforce OAuth authentication bad request error
<p>I am trying to run a simple example to authenticate with Salesforce using a Java code.</p>

<p>I am getting below error - 400 Bad Request</p>

<p>The login URL which I am using is</p>

<p><a href="https://login.salesforce.com/services/oauth2/token?grant_type=password&amp;client_id=clienty_id&amp;client_secret=client_secret&amp;username=username&amp;password=password" rel="nofollow">https://login.salesforce.com/services/oauth2/token?grant_type=password&amp;client_id=clienty_id&amp;client_secret=client_secret&amp;username=username&amp;password=password</a></p>

<p>I also tried removing the amp and ;</p>

<p><a href="https://login.salesforce.com/services/oauth2/token?grant_type=password&amp;client_id=clienty_id&amp;client_secret=client_secret&amp;username=username&amp;password=password" rel="nofollow">https://login.salesforce.com/services/oauth2/token?grant_type=password&amp;client_id=clienty_id&amp;client_secret=client_secret&amp;username=username&amp;password=password</a></p>

<p>But still got the same error 400 bad request.</p>