2013-04-04 96 views
0

我想通过谷歌选项在本地主机上运行的Web应用程序中添加登录。 但我收到此错误:登录使用谷歌使用java

HTTP/1.1 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: Thu, 04 Apr 2013 09:24:47 GMT, Content-Type: application/json, 
X-Content-Type-Options: nosniff, X-Frame-Options: SAMEORIGIN, 
X-XSS-Protection: 1; mode=block, Server: GSE, Transfer-Encoding: chunked] 

我的请求URL是:

https://accounts.google.com/o/oauth2/token?code%3D4%2Fu0R2AnFEfP8VDMIZSoVDNfSKGAPV.4vVN7R0VBtsbgrKXntQAax3e3D2oewI%26client_id%3D422021735554.apps.googleusercontent.com%26client_secret%3DNjqGvrdMuayzGlbUr65lgUyF%26redirect_uri%3Dhttp%3A%2F%2Flocalhost%3A8081%2FLoginExample%2Fg-login%26grant_type%3Dauthorization_code

我不知道是什么问题。请帮忙。如果你想充分利用代码在您的网站谷歌看到下面的链接登录

回答