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
preguntada hace 5 años192 visualizaciones
1 Respuesta
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 hace 5 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas