Home  >  Article  >  Backend Development  >  是否可以利用REST API上传文件?

是否可以利用REST API上传文件?

WBOY
WBOYOriginal
2016-06-23 13:54:341877browse

是否可以将上传文件的功能做成RESTful API? 客户端是C程序或DOS环境,如何调用此API进行文件上传呢?
请多指教,最好有代码,谢谢!


回复讨论(解决方案)

客户端使用 curl 库函数或 sock 库函数

客户端使用 curl 库函数或 sock 库函数



服务器端的上传代码使用这种方式可以吗? http://www.w3school.com.cn/php/php_file_upload.asp

可以!无论服务端使用的是何种语言,都有标准的接收上传文件的代码

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:流程算法Next article:PHP对象问题