Welcome Guest, Not a member yet? Register   Sign In
Encoded URL issues
#1

[eluser]mwolf[/eluser]
I'm trying to pass a URL like below, but it seems to be erroring out on the % symbols.

Code:
http://domain.com/index.php/request/index/12312/http%3 A%2 F%2 Fwww.google.com

Any ideas why this doesn't work? And, what would it take to get it to work?

EDIT: I had to add space because the forums was converting the ascii characters. My URL does not have the spaces in it.
#2

[eluser]Colin Williams[/eluser]
Explain "doesn't work" please
#3

[eluser]mwolf[/eluser]
It is spitting out a 404 error. When I take the '%' symbols out of the URL, the page renders fine.

Code:
Not Found

The requested URL /index.php/request/index/12312/http://www.google.com was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
#4

[eluser]mwolf[/eluser]
Anyone have any ideas?
#5

[eluser]Fabdrol[/eluser]
Yeah, I had this too.
In your config you need to set the URL protocol to PATH_INFO, instead of the default AUTO.
If that doesn't work, play a bit around with the other options, until it works.

(that's a bit depended on your server config, but PATH_INFO worked great for me)




Theme © iAndrew 2016 - Forum software by © MyBB