mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Proxy all requests - even a repeated one #337
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DarthXerox on GitHub (Mar 15, 2021).
Originally assigned to: @StefH on GitHub.
Hey,
hopefully I didn't miss some hidden feature or a different way to solve this problem:
Repeated request problem
I'm sending a sequence of requests from a client to my webapi, some of these requests repeat.
The problem occurs when the same request is received the second time - it is NOT sent to the
Url, only the previously saved response is sent back.I do not need to record the request again, only that the
Urlreceives the request again, without it the rest of the requests are invalid.Possible solution
Adding a
ProxyAll = trueoption inProxyAndRecordSettingswhich would tell the server to proxy ALL requests to theUrlIs your feature request supported by WireMock (java version)? Please provide details.
Yes, by
--proxy-allcommand line option in http://wiremock.org/docs/running-standalone/Thanks for help
@StefH commented on GitHub (Mar 19, 2021):
Hello @DarthXerox,
So you want to save only the first proxied mapping to the internal mapping + file?
@marspox commented on GitHub (Jul 13, 2022):
Hello,
Is it possible to have that functionality or maybe it has been already added?
BR
@StefH commented on GitHub (Jul 13, 2022):
@marspox
It's not yet implemented.
@sameena-ops commented on GitHub (Dec 11, 2023):
We do faced the same issue couple of times, would like to work on it. And the implementation idea is to have a ProxyAll flag and if it is true then set the proxy priority as lowest integer value so that proxy takes the precedence over existing in-memory mapping.
@StefH commented on GitHub (Dec 11, 2023):
https://github.com/WireMock-Net/WireMock.Net/pull/1038