Access Token Request

On a project I'm working on I had to implement Access Token Request as described here: http://tools.ietf.org/html/rfc6749#section-4.3.2

The client id and secret are passed in the auth header, the request is a POST but the username and password need to be passed via the query string.