mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
[Question] How to match GET with body? #623
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 @vovka15 on GitHub (Aug 9, 2024).
Hello.
How to match a GET request with a body?
Yes, it's bad that GET uses body, but we can't do nothing about it.
So when I send GET request with a body Wiremock logs that body is null.
Is it possible to match GET request with a body?
Thanks in advance.
PS: I am using latest WireMock version.
@StefH commented on GitHub (Aug 9, 2024):
Set AllowBodyForAllHttpMethods to true in the settings.
@vovka15 commented on GitHub (Aug 9, 2024):
It worked! Thank you