小编joa*_*dha的帖子

如何使用 php-curl POST 本地存储的二进制文件?

我希望使用 php-curl 发出以下curl 请求:

curl "http://www.example.com/" -F "file=@foo.ext"
Run Code Online (Sandbox Code Playgroud)

foo.ext假设 PHP位于我发出请求的计算机上,我需要如何在 PHP 中进行设置(使用curl_init、_setopt 等) ?

php post curl

3
推荐指数
1
解决办法
2802
查看次数

标签 统计

curl ×1

php ×1

post ×1