HttpSocket passing "/" in a parameter value

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
smash51
Forum Newbie
Posts: 1
Joined: Mon Aug 24, 2009 3:39 pm

HttpSocket passing "/" in a parameter value

Post by smash51 »

Hey Everyone
I am a new php / cake programmer and I am trying to build a site based mostly on web requests for data. This pattern is set in stone and I can't change it. The problem is some of the parameters are in the format of a path (i.e. xml/error.xml).
When this parameter is sent it gets encoded automatically by $HttpSocket->get. Is there a way for me to turn this encoding off? I have no control over the remote system and it can't seem to deal with the resulting "xml%2Ferror.xml". Is there some kind of request parameter I can set to help this?

Thanks for any help.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: HttpSocket passing "/" in a parameter value

Post by jackpf »

Idk, I don't use cake or whatever. But you could use urldecode() to decode it.
Post Reply