Welcome Guest, Not a member yet? Register   Sign In
Valid URL :: But getting 404 ....
#1

[eluser]Unknown[/eluser]
Hi,

I am trying to use google authentication to use Picasa web album. Once authentication is done, google will redirect you to a predefined URL (this is configurable). This is my URL

http://<SERVER IP>/picasa/after_auth/

While redirecting google adds one authentication token information, which we can use to query user data from google.

http://<SERVER IP>/picasa/after_auth/?token=<SOME TOKEN>

Now I have a controller picasa and after_auth is a function defined in the controller, but the URL is showing 404 error.

If I remove "?" from the URL its working fine.

My controller code

&lt;?php

class Picasa extends Controller {

function Picasa() {
parent::Controller();
}

function after_auth($token) {
echo "Success : ".$token;
}


}

Please Help
#2

[eluser]Sbioko[/eluser]
Because you shouldn't use "pretty" urls. Use native urls.
#3

[eluser]Sbioko[/eluser]
You should allow $_GET in CI.
#4

[eluser]Dyllon[/eluser]
Use this method to use both URI segments and query strings




Theme © iAndrew 2016 - Forum software by © MyBB