我正在使用pipedrive API,我想提出这样的请求:
GET https://api.pipedrive.com/v1/deals(id,title,value,currency)?api_token=YOUR_API_TOKEN
它运作良好,例如。当我使用浏览器执行请求时,但当我使用Guzzle发送请求时,我得到响应501.我认为它的编码方式是Pipedrive API无法识别的。
有没有办法在Guzzle 6中禁用URL编码?
答案 0 :(得分:0)
似乎这是一个错误,我不是唯一面临这个问题的人:
提交消息:
Fixing path URI encoding.
The previous pattern was incorrect:
'/(?:[^' . self::$charUnreserved . ':@&=\+\$,\/;%]+|%(?![A-Fa-f0-9]{2}))/'
The new pattern now properly follows RFC 3986:
/(?:[^a-zA-Z0-9_\-\.~!\$&'\(\)\*\+,;=:@\/%]+|%(?![A-Fa-f0-9]{2}))/
This pattern now allows the following characters: "(", ")", "*", "!", "'"