Advertisement
dereksir

Untitled

Aug 9th, 2023
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. import requests
  2.  
  3. api_url = 'http://localhost:8191/v1'
  4. headers = {'Content-Type': 'application/json'}
  5.  
  6. data = {
  7.   "cmd": "request.post",
  8.   "url":"https://www.example.com/POST",
  9.   "postData": POST_DATA,
  10.   "maxTimeout": 60000
  11. }
  12.  
  13. response = requests.post(api_url, headers=headers, json=data)
  14.  
  15. print(response.data)
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement