作者:手机用户2502936971 | 来源:互联网 | 2018-05-19 10:44
有没有人使用过PHP的Requests的POST方式上传过文件?
$data = array('file' => '@/tmp/test.txt');
$respOnse= Requests::post(self::LOAD_URL, array(), $data);
这样使用总是报file empty,请问有人知道怎么上传文件么?
回复内容:
有没有人使用过PHP的Requests的POST方式上传过文件?
$data = array('file' => '@/tmp/test.txt');
$respOnse= Requests::post(self::LOAD_URL, array(), $data);
这样使用总是报file empty,请问有人知道怎么上传文件么?
你可别逗了,Requests::post 你确定这是php自带的,这明明是自己写的类、