qiguifansi@foxmail.com PUT /api/agent/plugin/ HTTP/1.1 Host: 192.168.169.192:8000 Content-Length: 41844 Accept: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmFtZSI6ImFkbWluIiwiY3VycmVudEF1dGhvcml0eSI6ImFkbWluIiwiaWF0IjoxNjczMzQ3ODkxLCJleHAiOjE2NzMzNTM4OTF9.IvJkzaiJCRe9LZRVxLZLxWmRUZnlZ-Up0DKo1CRGzqo User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36 Content-Type: multipart/form-data; boundary=----WebKitFormBoundary3TkWtQ08MxDhgnXB Origin: http://192.168.169.192:8000 Referer: http://192.168.169.192:8000/confManager/pluginmanagement Accept-Encoding: gzip, deflate Accept-Language: zh-CN,zh;q=0.9 Connection: close 使用python语言,利用该接口每次上传一个tgz文件直至当前文件夹中所有文件上传成功
时间: 2023-02-08 15:06:51 浏览: 632
这是一个 HTTP PUT 请求,请求地址为 "http://192.168.169.192:8000/api/agent/plugin/"。该请求包含一些头部信息,其中包括:
- Host: "192.168.169.192:8000"
- Content-Length: 41844
- Accept: "application/json"
- Authorization: "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmFtZSI6ImFkbWluIiwiY3VycmVudEF1dGhvcml0eSI6ImFkbWluIiwiaWF0IjoxNjczMzQ3ODkxLCJleHAiOjE2NzMzNTM4OTF9.IvJkzaiJCRe9LZRVxLZLxWmRUZnlZ-Up0DKo1CRGzqo"
- User-Agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36"
- Content-Type: "multipart/form-data; boundary=----WebKitFormBoundary3TkWtQ08MxDhgnXB"
- Origin: "http://192.168.169.192:8000"
- Referer: "http://192.168.169.192:8000/confManager/pluginmanagement"
- Accept-Encoding: "gzip, deflate"
- Accept-Language: "zh-CN,zh;q=0.9"
- Connection: "close"
在请求正文中,上传的文件的格式为tgz文件。并且你希望使用Python语言通过这个接口,上传当前文件夹中所有文件,直到所有文件上传成功。
阅读全文