This is how I call a service with .NET:
var requestedURL = \"https://accounts.google.com/o/oauth2/token?code=\" + code + \"&client_id=\" + client_id + \"
you need to add Content-Length: 0 in your request header.
Content-Length: 0
a very descriptive example of how to test is given here