Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
401 Unauth error
#1
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:
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.
Reply


Messages In This Thread
401 Unauth error - by GUaro5555 - Oct-17-2022, 01:06 AM
RE: 401 Unauth error - by ndc85430 - Oct-17-2022, 04:20 AM
RE: 401 Unauth error - by Larz60+ - Oct-17-2022, 02:00 PM
RE: 401 Unauth error - by GUaro5555 - Oct-18-2022, 01:03 PM
RE: 401 Unauth error - by Larz60+ - Oct-18-2022, 02:36 PM
RE: 401 Unauth error - by GUaro5555 - Oct-18-2022, 03:40 PM
RE: 401 Unauth error - by Larz60+ - Oct-19-2022, 01:04 AM
RE: 401 Unauth error - by GUaro5555 - Oct-19-2022, 03:03 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020