79819318

Date: 2025-11-13 18:43:38
Score: 1
Natty:
Report link

You need to use a session, and it needs to be modified to disable the ordinary behavior:

class ForwardedSession(requests.Session):
    def rebuild_auth(request, response):
        return

with ForwardSession() as session:
    response = session.put("http://forwarded_url", auth=(user, password))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jon Obermark