pear 中的 urlencoding 更改发布请求值
我最近下载了 PEAR 包,目前正在使用 HTTP_Requst2。 它一直在工作,直到我尝试发布到一个包含隐藏参数的网站,该参数的值中有一个空格: &login=Sign In
问题是 HTTP_Request 对请求进行 urlencode,因此我的帖子发送为: &login =Sign+In
我尝试了两个适配器(curl 和 socket),但没有运气,我知道它就在那里,但你们总是帮忙。
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 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
+
是空格字符的编码方式。所以HTTP_Request2
行为是完全有效的。+
is how the space char should be encoded. SoHTTP_Request2
behaviour is perfectly valid.