上传文件
import requests
headers = {
"ssid":"1234"
}
files = {'file': open('yourfile.tar.gz', 'rb')}
url="http://localhost:1345/fileUpload/"
r = requests.post(url, files=files, headers=headers)
print(r.status_code)
import requests
headers = {
"ssid":"1234"
}
files = {'file': open('yourfile.tar.gz', 'rb')}
url="http://localhost:1345/fileUpload/"
r = requests.post(url, files=files, headers=headers)
print(r.status_code)