我希望使用 php-curl 发出以下curl 请求:
curl "http://www.example.com/" -F "file=@foo.ext"
foo.ext假设 PHP位于我发出请求的计算机上,我需要如何在 PHP 中进行设置(使用curl_init、_setopt 等) ?
foo.ext
php post curl
curl ×1
php ×1
post ×1