Sep-04-2020, 06:53 PM
Note the error it says it's trying to connect to the host
If you want to expand the variable posturl in another string, you don't use parenthesis. You could use an f-string and curly braces like:
(posturl)
, which doesn't exist.If you want to expand the variable posturl in another string, you don't use parenthesis. You could use an f-string and curly braces like:
r = requessts.post(f"https://{posturl}")