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 年前檢視次數 193 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南