相关疑难解决方法(0)

如何使用curl来生成POST巨大的XML文件 - PHP

有办法吗?

curl -X POST -H "Content-Type:application/xml" --data @myfile.xml http://example.com
Run Code Online (Sandbox Code Playgroud)

但直接在PHP?

CURLOPT_PUT/ CURLOPT_UPLOAD以及file_get_contents以及exec

不是解决方案,因为它必须是POST,文件很大,所以必须流式传输.

有任何想法吗?

php post curl http-post

5
推荐指数
2
解决办法
8632
查看次数

标签 统计

curl ×1

http-post ×1

php ×1

post ×1