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

CURLOPT_NOPROXY not supported #441

Open
yami0101 opened this issue Jan 11, 2023 · 0 comments
Open

CURLOPT_NOPROXY not supported #441

yami0101 opened this issue Jan 11, 2023 · 0 comments

Comments

@yami0101
Copy link

Hi. It seems that the CURLOPT_NOPROXY is missing in ext/curb_easy.c, which in turn gives a type error, when trying to set it:

irb(main):046:0> url = 'https://google.com'
irb(main):047:0> curl = Curl::Easy.new(url)
irb(main):049:0> curl.set(:noproxy, "")

.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/curb-1.0.5/lib/curl/easy.rb:44:in `rescue in set': Curb doesn't support setting noproxy [#10177] option (TypeError)
.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/curb-1.0.5/lib/curl/easy.rb:42:in `setopt': Curb unsupported option (TypeError)

This is needed to be able to override the no_proxy / NO_PORXY ENV var in some specific cases.

This option is already present in both ext/curb.c (line 509) and ext/extconf.rb (line 180). Would it be possible to add it to ext/curb_easy.c as well?

There were already similar issues closed #280

Thank you in advance.

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

1 participant