Proxy all requests - even a repeated one #337

Closed
opened 2025-12-29 15:21:12 +01:00 by adam · 5 comments
Owner

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 Url receives the request again, without it the rest of the requests are invalid.

Possible solution
Adding a ProxyAll = true option in ProxyAndRecordSettings which would tell the server to proxy ALL requests to the Url

Is your feature request supported by WireMock (java version)? Please provide details.
Yes, by --proxy-all command line option in http://wiremock.org/docs/running-standalone/

Thanks for help

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 `Url` receives the request again, without it the rest of the requests are invalid. **Possible solution** Adding a `ProxyAll = true` option in `ProxyAndRecordSettings` which would tell the server to proxy ALL requests to the `Url` **Is your feature request supported by [WireMock (java version)](https://www.wiremock.org)? Please provide details.** Yes, by `--proxy-all` command line option in http://wiremock.org/docs/running-standalone/ Thanks for help
adam added the feature label 2025-12-29 15:21:12 +01:00
adam closed this issue 2025-12-29 15:21:12 +01:00
Author
Owner

@StefH commented on GitHub (Mar 19, 2021):

Hello @DarthXerox,
So you want to save only the first proxied mapping to the internal mapping + file?

@StefH commented on GitHub (Mar 19, 2021): Hello @DarthXerox, So you want to save only the **first** proxied mapping to the internal mapping + file?
Author
Owner

@marspox commented on GitHub (Jul 13, 2022):

Hello,

Hello @DarthXerox, So you want to save only the first proxied mapping to the internal mapping + file?

Is it possible to have that functionality or maybe it has been already added?

BR

@marspox commented on GitHub (Jul 13, 2022): Hello, > Hello @DarthXerox, So you want to save only the **first** proxied mapping to the internal mapping + file? Is it possible to have that functionality or maybe it has been already added? BR
Author
Owner

@StefH commented on GitHub (Jul 13, 2022):

@marspox
It's not yet implemented.

@StefH commented on GitHub (Jul 13, 2022): @marspox It's not yet implemented.
Author
Owner

@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.

@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.
Author
Owner

@StefH commented on GitHub (Dec 11, 2023):

https://github.com/WireMock-Net/WireMock.Net/pull/1038

@StefH commented on GitHub (Dec 11, 2023): https://github.com/WireMock-Net/WireMock.Net/pull/1038
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#337