Send curl POST Request in Python without installing a lib Send curl POST Request in Python without installing a lib curl curl

Send curl POST Request in Python without installing a lib


Write a curl command in a way that it can work in the shell and then execute the command in the shell.This way you don't need the requests package.

import oscommand = "curl -u {username}:{password} [URL]"os.system(command)