string code = Request.QueryString["code"]; string con= "?code=" + code + "&grant_type=" + "authorization_code" + "&client_id=" + TokenData.GoogleAppKey + "&client_secret=" + TokenData.GoogleAppSecret + "&redirect_uri=" + "http://localhost:52731/Common/Index"; var req = (HttpWebRequest)WebRequest.Create(TokenData.GoogleTokenUrl + con); req.Method = "POST"; req.ContentType = "application/x-www-form-urlencoded"; req.ContentLength = 0; var a = req.GetResponse();
The remote server returned an error: (400) Bad Request.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)