title: Equivalent http request of curl command
body: <p>I'm working on OAUTH 2.0 stuff using following curl command which is working fine in my terminal.</p>
  
  <p>command -</p>
  
  <pre><code>curl -u testclient1:testpass1 http://localhost/oauth2-server/token.php -d 'grant_type=password&amp;username=bshaffer&amp;password=brent123'
  </code></pre>
  
  <p>I want to know what's equivalent HTTP request for above CURL command so that, i can use guzzle(comparatively easier) to make HTTP request to get the token. I've tried a lot of combination but not getting the right way to do it.</p>