od-database/debug_put.py
2018-06-13 15:54:45 -04:00

16 lines
357 B
Python

import requests
import json
payload = json.dumps({
"website_id": 123,
"url": "ftp://ien11-3-88-183-194-246.fbx.proxad.net/",
"priority": 2,
"callback_type": "",
"callback_args": "{}"
})
r = requests.post("http://localhost:5001/task/put",
headers={"Content-Type": "application/json"},
data=payload)