How to perform OAuth 2.0 using the Curl CLI? : <p>I would like to use curl from a Windows command prompt to perform Google OAuth 2.0. My goal is to better understand the authentication flows that an OAuth server implements, see the HTTP headers, etc.</p>

<p>How can this be done using curl.exe from a Windows Command Prompt?</p>
