Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Support for http(s)_proxy #51

Closed
ChrisWeiss opened this issue Mar 4, 2014 · 8 comments · Fixed by #749
Closed

Support for http(s)_proxy #51

ChrisWeiss opened this issue Mar 4, 2014 · 8 comments · Fixed by #749

Comments

@ChrisWeiss
Copy link

it doesn't appear that dredd leverages http_proxy or https_proxy when doing it's web calls to the API endpoint.

@zdne
Copy link
Contributor

zdne commented Mar 5, 2014

@ChrisWeiss

Can you be please more specific? How would you expect this to work?

@ChrisWeiss
Copy link
Author

If the environment variables http_proxy and/or https_proxy are set, they should be leveraged in the call. I think this StackOverflow answer has a somewhat correct implementation (to be platform agnostic, it'd need to function if those variables are not set). (disclaimer, I'm completely new to node/coffeescript) http://stackoverflow.com/questions/3862813/how-can-i-use-an-http-proxy-with-node-js-http-client

@imp-partner-test
Copy link

I also ran into this. How do I tell dredd to use a http proxy?

@ecordell
Copy link
Contributor

The nodejs people think it's not worth implementing in the http/https libraries.

It looks like it might be worthwhile to switch from node's http/https libraries to request, and then add this functionality to request (already being discussed here).

@honzajavorek
Copy link
Contributor

Related: #591

@weejames
Copy link

It would be great to see this made available. The lack of this makes Dredd difficult to use behind our company proxy.

@honzajavorek
Copy link
Contributor

honzajavorek commented Mar 8, 2017

This is going to be implemented 🎉 I'd appreciate if all of you commenting here (and adding @alex-glv from #591) could give me some pointers. Do you think this kind of support would be sufficient to fulfill your dreams? 🙂

@honzajavorek
Copy link
Contributor

Support for HTTP(S) proxy has been implemented in Dredd v3.3.0. See documentation on how to use it.

artem-zakharchenko pushed a commit that referenced this issue Oct 9, 2019
…ompiler (#51)

New Fury adapter for parsing API Blueprint uses Drafter NPM, which decides whether to use C++ version or JS version of Drafter. This way, Dredd Transactions should become installable also on machines without C++11 compiler.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants