输入banner图图片脚本导航/分类

phpcurlpost二进制数据流图片的数据格式

$key = "file\"; filename=\"1.jpg\r\nContent-Type: image/jpeg\r\n";
$fields[$key] = $file;

用curl post $fields数组 提交二进制流图片

可是对方服务器提示获取不到信息

求教格式哪里有错误

回复内容:

$key = "file\"; filename=\"1.jpg\r\nContent-Type: image/jpeg\r\n";
$fields[$key] = $file;

用curl post $fields数组 提交二进制流图片

可是对方服务器提示获取不到信息

求教格式哪里有错误

CURL上传文件完整篇

CURL函数之上传 | 下载文件

http://php.com/manual/en/function.curl-file-create.php