pear 中的 urlencoding 更改发布请求值

发布于 2024-12-06 06:30:23 字数 229 浏览 0 评论 0原文

我最近下载了 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技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

巡山小妖精 2024-12-13 06:30:23

+ 是空格字符的编码方式。所以 HTTP_Request2 行为是完全有效的。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文