Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] core.net.http:proxies format is unclear #3678

Open
andrey-zherikov opened this issue Apr 12, 2024 · 1 comment
Open

[bug] core.net.http:proxies format is unclear #3678

andrey-zherikov opened this issue Apr 12, 2024 · 1 comment
Milestone

Comments

@andrey-zherikov
Copy link

andrey-zherikov commented Apr 12, 2024

Describe the bug

Conan version: 2.2.2

Documentation says core.net.http:proxies: Dictionary containing the proxy configuration without clarification the format of dictionary.

After some experiments I found that the key is a hostname and the value is port. So:

  1. Please confirm that this is the expected format.
  2. Update documentation to make this clear.
  3. Ideally enforce the validation of the format of global.conf to ensure that it's always valid.
@memsharded
Copy link
Member

yeah, the expected format is like:

core.net.http:proxies = {"http": "value"}

This is basically a forward to python-requests with: https://requests.readthedocs.io/en/latest/user/advanced/#proxies

I'll move this ticket to the docs repo for trying to improve them. Contributions are also welcome there.

Thanks for reporting this!

@memsharded memsharded transferred this issue from conan-io/conan Apr 12, 2024
@memsharded memsharded added this to the 2 milestone Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants