Negotiate Authentication Scheme in a POST Request

0

I'm using the requests library to request a URL, but the site requires authentication. I've tried using the basic authentication, there is an error when using just urllib saying the scheme is "Negotiate," and I get a 401 error when I try with requests. Using urllib3.contrib.ntlmpool doesn't work because Lambda can't find the "ntml" library that ntlmpool tries to import from. Is there a way to do this with the libraries available through AWS or must I use another library?

v3lardy
已提问 5 年前192 查看次数
1 回答
0

I was able to do this by copy/pasting code from https://github.com/mullender/python-ntlm/tree/master/python30/ntlm into separate files in my lambda function and importing from there.

v3lardy
已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则