开发者

urlencoding in pear changes post request values

开发者 https://www.devze.com 2023-04-07 14:51 出处:网络
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

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

精彩评论

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

关注公众号