开发者

urlencoding in pear changes post request values

I recently downloaded PEAR package and i'm currently using HTTP_Requst2. It was working find until i tried posting to a site that included a hidden parameter that had a space in the value: &login=Sign In

The开发者_JAVA百科 problem is that the HTTP_Request is urlencoding the request so my post is sent as: &login=Sign+In

I tried both adapters(curl & socket) but no luck, I know it's out there but you guys always helped in the pass.


+ is how the space char should be encoded. So HTTP_Request2 behaviour is perfectly valid.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜