Hi gurus .
I m still very new to python so go easy on me, I have been trying to create this project that login to a website, what I have so far is the following:
can someone help me find out what I am doing wrong
Thanks
I m still very new to python so go easy on me, I have been trying to create this project that login to a website, what I have so far is the following:
import requests LoginURL = 'https://logicmonitor.com/santaba/rest/setting/admins/services/signin' Payload = { 'username': 'username', 'password': 'mypassword' } r = requests.post(LoginURL, params=Payload) print(r.text)once I run it I get the 401 auth error
can someone help me find out what I am doing wrong
Thanks
Larz60+ write Oct-17-2022, 01:22 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
fixed for you this time. Please use BBCode tags on future posts.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
fixed for you this time. Please use BBCode tags on future posts.