title: Google OAuth 2: response_type error on token request
body: <p>I am trying to return an OAuth 2 response code for an OAuth response token. However, my request returns the following error which has zero results in google. I tried changing <code>response_type</code> to "token" instead of "code" but that didn't work either.</p>
  
  <blockquote>
    <p>OAuth 2 parameters can only have a single value: response_type</p>
  </blockquote>
  
  <p>Request Details:</p>
  
  <pre><code>scope=https://www.googleapis.com/auth/userinfo.email
  client_secret=_____
  response_type=code
  grant_type=authorization_code
  redirect_uri=http://localhost/folder/
  client_id=____.apps.googleusercontent.com
  code=_____
  </code></pre>
  
  <p>I'm sending this second-step payload to <code>POST https://accounts.google.com/o/oauth2/auth</code></p>
  
  <p><strong>What is wrong with my request?</strong></p>
  
  <h2>Edit</h2>
  
  <p>I just realized that there is the <code>https://accounts.google.com/o/oauth2/token</code> URL that should be used for this request. However, changing to that URL now gives: </p>
  
  <pre><code>HTTP/1.0 400 Bad Request
  Cache-Control: no-cache, no-store, max-age=0, must-revalidate
  Pragma: no-cache
  Expires: Fri, 01 Jan 1990 00:00:00 GMT
  Date: Fri, 27 Jul 2012 22:44:35 GMT
  Content-Type: application/json
  X-Content-Type-Options: nosniff
  X-Frame-Options: SAMEORIGIN
  X-XSS-Protection: 1; mode=block
  Server: GSE
  
  {
    "error" : "invalid_request"
  }
  </code></pre>
  
  <h2>Edit 2</h2>
  
  <p>Removing the <code>response_type</code> and changing the URL like above solved this. </p>