cntlm-0.35.1 modified to support Basic HTTP Auth with HTTPAUTH parameter
· ☕ 3 min read · 🤖 Naresh Mehta
It was quite some time ago, I think in the beginning of this year when I had to pass through my corporate proxy which used a Basic HTTP Authentication scheme. In short, it means that all my HTTP requests will need to have a parameter Proxy-Authorization : Base64_Encoded_Username:Password. But before going further, I needed to use a local proxy since my passwords generally have a lot of @ symbols to make it more secure. In Linux, one can use proxy authentication using export http_proxy=http://username:password@proxy:port. As you guessed, my password would break this simple mechanism of defining proxy tunnels with authentication. The easiest solution would be to change my password but then I am not an engineer who goes for such simple workarounds.