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年前181ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ