Python Forum
Post Request containing username/password using python for jwt
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Request containing username/password using python for jwt
#2
Ooops... sorry for bothering you guys, got the solution,

below code worked for me

import requests

url = "https://xx.23.105.xx:446/nmsnbi-rest/tapi/data/context/auth-context/auth-token"

payload = {}
headers ={
        'user': 'Admin',
        'password': 'Admin@3'}

response = requests.request("POST", url, headers=headers, data = payload,verify=False)

print(response.text.encode('utf8'))
Reply


Messages In This Thread
RE: Post Request containing username/password using python for jwt - by anna - Oct-18-2022, 04:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  recive post request from client(browser) python sockets kunz 1 2,845 Dec-13-2018, 12:53 AM
Last Post: kunz
  Python script hangs after entering username to remote login using telnetlib auto 0 4,847 Sep-10-2018, 01:10 PM
Last Post: auto

Forum Jump:

User Panel Messages

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