Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Username and password in URL no longer works when using digest authentication through a proxy #4228
Ever since 46e1640, it appears that attempts to use a username and password as part of an HTTP URL whilst communicating via a proxy fails. libcurl does not send an Authorization header.
Steps to reproduce:
Originally raised in the thread at https://curl.haxx.se/mail/lib-2019-08/0002.html
When a username and password are provided in the URL, they were not correctly stored and remembered in the easy handle, only for the connection, so when doing HTTP auth that uses multiple connections (like Digest) curl mishaved. Regression from 46e1640 (7.62.0) Test case 335 added to verify. Reported-by: Mike Crowe Fixes #4228
When a username and password are provided in the URL, they were wrongly removed from the stored URL so that subsequent uses of the same URL wouldn't find the crendentials. This made doing HTTP auth with multiple connections (like Digest) mishave. Regression from 46e1640 (7.62.0) Test case 335 added to verify. Reported-by: Mike Crowe Fixes #4228