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

How can we connect provider using proxy ? Is it possible in pact to connect provider endpoint using proxy credentials? #1146

Closed
KANISHKART opened this issue Jun 24, 2020 · 2 comments

Comments

@KANISHKART
Copy link

No description provided.

@KANISHKART KANISHKART changed the title How can we coonect provider using proxy ? Is it possible in pact to connect provider endpoint using proxy credentials? How can we connect provider using proxy ? Is it possible in pact to connect provider endpoint using proxy credentials? Jun 24, 2020
@uglyog
Copy link
Member

uglyog commented Jun 24, 2020

Proxy details can be set with the following JVM system properties:

  • http.proxyHost
  • http.proxyPort
  • https.proxyHost
  • https.proxyPort
  • http.nonProxyHosts

@todor-kolev
Copy link

Hi @uglyog , could you please provide some example how can we add proxy details to the provider endpoint. tried to add the using JVM system properties but it did not worked
System.setProperty("http.proxyHost","someproxy")
System.setProperty("http. proxyPort","proxyport")

Doing the above worked for me so you might need to use https.proxyHost and https.proxyPort instead.

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

3 participants