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

Question: Is there a way to provide a corporate proxy configuration? #369

Closed
Benny1007 opened this issue Oct 29, 2019 · 10 comments
Closed
Labels

Comments

@Benny1007
Copy link

Benny1007 commented Oct 29, 2019

for all other requests i'd like to just forward onto someother.server.internal but i get hit by my corporate proxy, how do I provide a corporate proxy for all other requests?

stub.Given(
  Request
    .Create()
    .WithPath("/*")
  ).AtPriority(1000)
  .RespondWith(Response.Create().WithProxy("http:https://someother.server.internal/api"));
@StefH StefH added the question label Oct 29, 2019
@StefH
Copy link
Collaborator

StefH commented Oct 29, 2019

Good question. This is not yet supported. I think the best place to add this is with:
public IResponseBuilder WithProxy(IProxyAndRecordSettings settings)

So adding a WebProxySettings property to IProxyAndRecordSettings which supports the URL, username and password would be a good start.

@StefH
Copy link
Collaborator

StefH commented Oct 30, 2019

Hello @Benny1007,
Can you please try the NuGet version WireMock.Net.1.0.36-ci-12100.nupkg from MyGet ?

@Benny1007
Copy link
Author

Hi, how do I do that from within VisualStudio? I have ticked 'pre-release' but it doesn't show up.

@StefH
Copy link
Collaborator

StefH commented Oct 31, 2019

@StefH
Copy link
Collaborator

StefH commented Nov 5, 2019

Can you test this?

@StefH
Copy link
Collaborator

StefH commented Nov 18, 2019

@Benny1007 Can you please test ?

@Benny1007
Copy link
Author

Hi, sorry I thought I had responded already. Unfortunately I can't connect to the repository this test package resides in. At work we use a Nexus hosted repository that we don't have administrative control over. Any package that we as developers use has to be pulled through this corporate Nexus from nuget.org or other proxies the administrators see fit to set up.

@StefH
Copy link
Collaborator

StefH commented Nov 18, 2019

OK. I've uploaded that package also to the normal nuget.org, please get this one.

@StefH
Copy link
Collaborator

StefH commented Nov 22, 2019

@Benny1007 Can you test that package?

@StefH StefH added feature and removed question labels Dec 7, 2019
@StefH
Copy link
Collaborator

StefH commented Dec 7, 2019

#370

@StefH StefH closed this as completed Dec 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants