http requests to my vps -- 2
Budget: $10 – $30 USD
Hello everyone
I have a vps containing some python scripts .
The vps has flask, so I can run my scripts using http requests.
the thing is, my http request look like this :
####### python code ##########
import requests
import re
url='http://4x.1xx.1xx.2xx/run_cmd'
data={'command':"gn52789"}
r=requests.post(url=url,json=data)
print(r.text)
####### python code ##########
now what i want, is to make the http request in 1 line, so I can run it from browser.
I have a vps containing some python scripts .
The vps has flask, so I can run my scripts using http requests.
the thing is, my http request look like this :
####### python code ##########
import requests
import re
url='http://4x.1xx.1xx.2xx/run_cmd'
data={'command':"gn52789"}
r=requests.post(url=url,json=data)
print(r.text)
####### python code ##########
now what i want, is to make the http request in 1 line, so I can run it from browser.