Hi,
From my
Java class(it is not a
servlet), I want send a request like this to my server
POST /o/oauth2/token HTTP/1.1
Host: accounts.google.com
Content-Type: application/x-www-form-urlencoded
code=4/P7q7W91a-oMsCeLvIaQm6bTrgtp7&
client_id=8819981768.apps.googleusercontent.com&
client_secret={client_secret}&
redirect_uri=https://oauth2-login-demo.appspot.com/code&
grant_type=authorization_code
I want send it to the server in order to retrieve an answer.
Do I need set it in the request and send it, send it like a
String?
I am very interested in make it work. Do you have any idea?
Many Thanks,