开发者

What is purpose of CURL_UPLOAD option in CURL

if upload file , i can use $data = array('file' => '@/home/user/test.pn开发者_Python百科g'); then what is purpose of CURL_UPLOAD option ?


Uploading a file to a remote server.


curl supports many different ways of uploading, using a large amount of different protocols.

This array-approach shown above is only used for doing HTTP multipart formposts. If you for example rather want a HTTP PUT, or upload with FTP, FTPS or SFTP etc, that's the option for you...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜