curl 模拟表单post文件

网上查询出来的几乎都是错误的,正确的应该是:php




$data = array( 'pic'=>new CURLFile($path) // 若是无效能够这样 // 'pic'=>curl_file_create($path) );

更多参考:https://www.jianshu.com/p/63b32ceea742curl

https://blog.csdn.net/a735311619/article/details/79826430url

相关文章
相关标签/搜索