mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Matching for x-www-form-urlencoded request body #435
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 @KyryloAntoshyn on GitHub (Aug 9, 2022).
Hi!
I need to mock POST request with
x-www-form-urlencodedbody:param1=value1¶m2=value2¶m3=value3¶m4=value4. I've been reading wiki pages regarding request matching but haven't found any option for matching URL encoded body. Is it possible to achieve withWireMock.Net. If yes, how can I implement it?Thanks in advance!
@StefH commented on GitHub (Aug 10, 2022):
@KyryloAntoshyn
Did you just try this:
For the body:
And for the header:
@KyryloAntoshyn commented on GitHub (Aug 10, 2022):
Thanks, it works fine for me!