Coder Social home page Coder Social logo

Ensure Proxy Support about cli HOT 6 CLOSED

akamai avatar akamai commented on June 26, 2024
Ensure Proxy Support

from cli.

Comments (6)

dshafik avatar dshafik commented on June 26, 2024 1

@francescoc-vf due to the architecture of the CLI, environment variables are the primary way of communicating with the package commands - this means adding a global proxy flag would likely just set the HTTP_PROXY environment variable before forking off the child process.

If this is acceptable, that is fine.

from cli.

francescoc-vf avatar francescoc-vf commented on June 26, 2024

Thanks for your prompt answer but proxy support via environment variable does not satisfy my request in #41.

Main target for this utility is supporting DevOps environments; meaning jumpservers, buildservers, monitoring servers.

While an environment variable is an acceptable solution on a personal workstation it's not recommended and usually forbidden in these scenarios.

There are also many other concerns about security and network complexity which really mandates a command line switch.

I'd suggest to consider that all other cli tools in this class (curl, wget, aria, httpie) does support it, usually on top of the environment variable.
Otherwise the value of this tool will be limited to a few very specific use cases.

from cli.

francescoc-vf avatar francescoc-vf commented on June 26, 2024

Sorry my bad, didn't explain myself properly :)
There are some limitations where you are not in control of the environment.
Setting up a proxy through a variable is not acceptable while it's "tolerated" via command line switch.

from cli.

dshafik avatar dshafik commented on June 26, 2024

@francescoc-vf I understand, I'll look to add this flag, which will just set the environment variable for sub-commands.

from cli.

dshafik avatar dshafik commented on June 26, 2024

@khunter has confirmed that Node packages do support HTTP_PROXY.

from cli.

rajiv avatar rajiv commented on June 26, 2024

ruby plugins which use the akamai/AkamaiOPEN-edgegrid-ruby gem (and consequently Net::HTTP in ruby) support http_proxy, and print this warning with HTTP_PROXY:

The environment variable HTTP_PROXY is discouraged.  Use http_proxy.

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.