Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

31.3. 上传文件

		
curl  -F "upload=@card.txt;type=text/plain"  "http://www.example.com/upload.php"		
		
		

使用 CURL 上传 Oauth2 + Jwt 认证的 Restful 接口

		
curl -s  -H "Authorization: Bearer ${TOKEN}" -X POST -F "file=@/etc/hosts" http://localhost:8080/upload/single