I have a command as below
Result = os.open(“curl -u username:password https://hostname/stafftools/reports/all_users.csv -k”).read()
It’s returning nothing.
can someone help me out?
I have a command as below
Result = os.open(“curl -u username:password https://hostname/stafftools/reports/all_users.csv -k”).read()
It’s returning nothing.
can someone help me out?
You should use the subprocess
module:
import subprocess
result = subprocess.call(["curl", "-u", "username:password", "https://hostname/stafftools/reports/all_users.csv", "-k"])
Find more information here.