aboutsummarylogtreecommitdiffstats
path: root/send-files.py
blob: 0b4d07d302dfbbe9e8ef749782283abe6b014597 (plain)
1
2
3
4
5
6
7
import requests
domain = "127.0.0.1:8080"
myurl = "http://" + domain + "/upload"
files = {"file": open("/home/artem/htmlbuilder-nodejs-bridge/files.zip", "rb")}
data = {"API": "myapi"}
res = requests.post(myurl, data=data, files=files)
print(res.text)