Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- api_url = 'http://localhost:8191/v1'
- headers = {'Content-Type': 'application/json'}
- data = {
- "cmd": "request.post",
- "url":"https://www.example.com/POST",
- "postData": POST_DATA,
- "maxTimeout": 60000
- }
- response = requests.post(api_url, headers=headers, json=data)
- print(response.data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement