try to use params of requests.get function
payload = {'cmd': 'event,disableSleep'}
r=requests.get('http://192.168.2.203/control', params=payload)
like resquest module exemple
http://docs.python-requests.org/en/mast ... rs-in-urls
Search found 1 match
- 03 Apr 2018, 15:11
- Forum: ESP Easy: Projects / Applications
- Topic: API and Python requests
- Replies: 3
- Views: 4239