PHP Guzzle 6不是URL编码pound / hash

时间:2016-07-12 12:44:45

标签: php guzzle

我在查询字符串中有一个井号/哈希符号,并且在使用PHP Guzzle 6发送get请求时,它没有被正确编码。样品申请:

https://10.1.10.1/vmrest/users?query=(alias%20is%20UserWithAPoundSign%2318)

发送方式为:

https://10.1.10.1/vmrest/users?query=(alias%20is%20UserWithAPoundSign#18)

我看到有一些与此问题相关的工作:

How to disable URL encoding in Guzzle 6

但它看起来不像磅/哈希。这是一个错误还是我做错了什么?

0 个答案:

没有答案