Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Ability for user to insert provisional User-Agent string #5549
What's the problem this feature will solve?
Describe the solution you'd like
This will allow users who are required to include specific information in the User-Agent headers sent out (such as through a proxy) and will allow users to implement their own tracking on Pip requests as well.
One other alternative solution (I'm not saying it's necessarily a good one, just mentioning it as an option) would be to run a local proxy on your PC that injected the extra header information while forwarding the traffic to the original destination.
@pfmoore true, although several other package management utilities include this functionality so there seems to be a precedent for having it. I'm about to create a pull request for this, and it didn't require too much modification to be honest.
referenced this issue
Jun 28, 2018
@pfmoore any more thoughts on this? The original discussion surrounding the user agent header was intended for wrappers, so I'm not entirely sure if the suggestion of a complete override was scrapped because it was for the purpose of a wrapper or not.
A few other utilities allow for the complete overriding of the user-agent string, but if there are concerns about that it is completely understandable. I'm just trying to get this functionality for my team, since we are all affected by a lack of a way to authenticate properly through our proxy. Thanks!