上传路径为https://t-iotpaas-p2019032533.obs.cn-south-1.myhuaweicloud.com:443/10211/b2f0c8c3-f395-4572-b5d1-17813c518b3b/wriot.conf?AccessKeyId=SEYXJNAYFBJBY7AYGU0Z&Expires=1686192550&Signature=R3QpAc2hRG5WwQqg5asFDrV%2Fzmo%3D,请求头为Content-Type:application/octet-stream,文件路径为/etc/config/wriot.conf,请写出linux上传该文件的命令
时间: 2024-01-02 17:02:49 浏览: 28
java红酒网站源码-awesome-stars:我的真棒列表由:https://github.com/abhijithvijayan/sta
可以使用curl命令上传该文件,命令如下:
```
curl -X PUT -T /etc/config/wriot.conf \
-H "Content-Type: application/octet-stream" \
"https://t-iotpaas-p2019032533.obs.cn-south-1.myhuaweicloud.com:443/10211/b2f0c8c3-f395-4572-b5d1-17813c518b3b/wriot.conf?AccessKeyId=SEYXJNAYFBJBY7AYGU0Z&Expires=1686192550&Signature=R3QpAc2hRG5WwQqg5asFDrV%2Fzmo%3D"
```
其中,-X指定请求方式为PUT,-T指定上传的文件路径,-H指定请求头,最后的URL为上传目标地址。
阅读全文