我试图使用ZF1其余客户与Zend_Rest_Client
$this->restClient = new Zend_Rest_Client('https://myurl.com');
$response = $this->restClient->delete('/service/'.$this->uuid.'.json?api_key='.$this->apikey);
删除资源删除,但我得到一个错误:
Path "/service/v-2149d050-c64b-0131-33b0-1231390c0c78.json?api_key=a-9a136a00-b340-0131-2662-1231390c0c78" is not a valid HTTP path
网络服务文档简单的说就是用
DELETE https://myurl.com/service/YOUR_UUID.json?api_key=YOUR_API_KEY
关于如何使用这个类的任何想法?
感谢
“'?'”是HTTP URI中的保留字符,如果要在URI的路径中使用它,则需要对其进行百分比编码。在你的代码中你有*没有*编码它。 – hakre