如何使用curl将zip文件上载到使用cakephp的https站点
如何使用curl将zip文件上载到使用cakephp的https站点? 我想使用cakephp将zip文件上传到url如何使用curl将zip文件上载到使用cakephp的https站点,php,cakephp,curl,Php,Cakephp,Curl,如何使用curl将zip文件上载到使用cakephp的https站点? 我想使用cakephp将zip文件上传到url $data1 = array('file' => "@/". realpath($file)."type=application/zip", 'Content-Type'=>'application/zip' ); $response = $this-&g
$data1 = array('file' => "@/". realpath($file)."type=application/zip",
'Content-Type'=>'application/zip'
);
$response = $this->_socket->post($this->url, $data1 , array('redirect' => true));
我想这可能对你有帮助
$data1 = array('file' => "@/". realpath($file)."type=application/zip",
'Content-Type'=>'application/zip',
'sslVerifyPeer' => false /* try using both values true or false */
);
$response = $this->_socket->post($this->url, $data1 , array('redirect' => true));
请更准确地说明您想要实现的目标,并包括您迄今为止所做的尝试。我们不是来为你做这项工作的..我已经添加了代码请检查它是否给我错误代码:评估内容错误不是\u XML\u或\u ZIP