CodeIgniter Forums
GET parameters and disallowed characters (Google API) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: GET parameters and disallowed characters (Google API) (/showthread.php?tid=5205)



GET parameters and disallowed characters (Google API) - El Forum - 01-11-2008

[eluser]dsloan[/eluser]
I'm trying to interface with Google Calendars using the Google API and am encountering a problem with the response that is returned from Google. As part of the initial authorisation process a call is made to the Google API which displays a remote page asking for access approval, and then redirects the user back to the original URL but with a security token appended to the URL (as a GET parameter). However CI throws an error saying that "The URI you submitted has disallowed characters".

For example, if the original URI is http://www.kpoint.co.uk/index.php/diary then after the Google access request page the browser is redirected to http://www.kpoint.co.uk/index.php?token=123456

Any ideas on how to get around this?

Thanks,
Diarmid Sloan


GET parameters and disallowed characters (Google API) - El Forum - 01-11-2008

[eluser]dsloan[/eluser]
More information on the Google Calendar API call are at :

http://code.google.com/apis/calendar/developers_guide_protocol.html#Auth


GET parameters and disallowed characters (Google API) - El Forum - 01-11-2008

[eluser]dsloan[/eluser]
Got this sorted - the API call has stripped the controller name off the requesting script name and is appending the token to the index.php filename itself.