有办法吗?
curl -X POST -H "Content-Type:application/xml" --data @myfile.xml http://example.com
但直接在PHP?
CURLOPT_PUT/ CURLOPT_UPLOAD以及file_get_contents以及exec
CURLOPT_PUT
CURLOPT_UPLOAD
file_get_contents
exec
不是解决方案,因为它必须是POST,文件很大,所以必须流式传输.
有任何想法吗?
php post curl http-post
curl ×1
http-post ×1
php ×1
post ×1