Skip to content

Consider adding flag to fall back to natural libcurl proxy behavior #1583

Closed
@rwolfson

Description

@rwolfson

Hi AWS C++ SDK folks,
I recently hit similar behavior regarding libcurl environment variables as reported in #1049 . Although I understand the desire for certain customers not wanting this automatic behavior, the default behavior is very helpful in many other environments. Specifically, it allows developers to create more deployment-agnostic code that doesn't need to implement boilerplate proxy detection logic or flags.

Would it be possible to consider a CMake flag that skips the block that sets CURLOPT_PROXY to ""?
https://github.com/aws/aws-sdk-cpp/blob/1.8.155/aws-cpp-sdk-core/source/http/curl/CurlHttpClient.cpp#L613-L616

That would hopefully avoid breaking customers that rely on the default behavior, but provide an opportunity for customers that want the default libcurl behavior to have their applications function similarly to other libcurl applications.

An alternative implementation could be an automaticProxy flag in ClientConfiguration that skips that specific CURLOPT_PROXY option from being set. This is a little bit less transparent than the preprocessor option since it would require application code changes to utilize.

Thank you for your consideration. I'm happy to submit a PR if this seems like a worthwhile improvement.

Activity

added
feature-requestA feature should be added or improved.
needs-triageThis issue or PR still needs to be triaged.
on Mar 4, 2021
sahil1105

sahil1105 commented on Apr 6, 2021

@sahil1105

I agree, using environment variables by default, and providing an option to ignore them for the special case would be ideal.

jmklix

jmklix commented on Mar 25, 2022

@jmklix
Member

This behavior is something that we want to add, but I don't have a timeline for when it will get added

removed
needs-triageThis issue or PR still needs to be triaged.
on Mar 25, 2022
added
p3This is a minor priority issue
on Mar 8, 2023
jmklix

jmklix commented on Sep 22, 2023

@jmklix
Member

This was added with this PR. Please update to the latest version of this sdk and let us know if you have any other features that could improve this sdk.

github-actions

github-actions commented on Sep 22, 2023

@github-actions

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.p3This is a minor priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jmklix@sahil1105@rwolfson

        Issue actions

          Consider adding flag to fall back to natural libcurl proxy behavior · Issue #1583 · aws/aws-sdk-cpp