Wiremock does not retrieve content-length on a HEAD request. #519

Closed
opened 2025-12-29 08:29:25 +01:00 by adam · 1 comment
Owner

Originally created by @maoso on GitHub (Jun 6, 2023).

Originally assigned to: @StefH on GitHub.

Using wiremock.net when I do a HEAD request, wiremock does not retrieve the content-length into the header of the response.

If we check the http HEAD method it should to it, https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD

Ok seems to be duplicated https://github.com/WireMock-Net/WireMock.Net/issues/720 going to close and a second look.

Thank you very much

Originally created by @maoso on GitHub (Jun 6, 2023). Originally assigned to: @StefH on GitHub. Using wiremock.net when I do a HEAD request, wiremock does not retrieve the content-length into the header of the response. If we check the http HEAD method it should to it, https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD Ok seems to be duplicated https://github.com/WireMock-Net/WireMock.Net/issues/720 going to close and a second look. Thank you very much
adam added the question label 2025-12-29 08:29:25 +01:00
adam closed this issue 2025-12-29 08:29:25 +01:00
Author
Owner

@StefH commented on GitHub (Jun 6, 2023):

this will be added in next release

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

@StefH commented on GitHub (Jun 6, 2023): this will be added in next release https://github.com/WireMock-Net/WireMock.Net/pull/951
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#519