I am trying to write an application which can upload files to Google Drive. I have chosen to interact with this service via raw http requests as I haven\'t found any useful
Are you sure your token is valid for Drive Scopes ? The test you mention at the end of your question is not on the same scope.
Also, don't forget that Oauht2 token are valid only for one hour. You may need to request another one or to use your refresh token, if you have one.