0

I created a client ID in the Google Developer Console and specified the same URL in my program and still it is getting the error.

Error: invalid_request

Invalid parameter value for redirect_uri: Uri must consist of printable ASCII characters:

This is my URI: localhost:81/public/login/CheckLogin.

Community
  • 1
  • 1
Raju Abe
  • 735
  • 2
  • 10
  • 25
  • Your URI contains unprintable characters. I suspect tabs and/or carriage returns. Until you provide the code you try to execute, nobody could say more. – Aleksei Matiushkin Nov 26 '14 at 06:32
  • See [Which characters make a URL invalid?](http://stackoverflow.com/questions/1547899/which-characters-make-a-url-invalid) – Rafiqul Islam Nov 26 '14 at 10:43

1 Answers1

0

Make sure it's URL-encoded. Try using the PHP urlencode function. Also, it doesn't like even URL-encoded spaces (just to let you know).

Solomon Ucko
  • 5,724
  • 3
  • 24
  • 45