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
feita há 5 anos190 visualizações
1 Resposta
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
respondido há 5 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas