When sending a message using the HttpClient from C# it will send the following to the server:
Delete http://test.com/v1/client HTTP/1.1
Host: test.com
Content-Length: 0
And this results in a 404 message from the IIS server:HTTP/1.1 404 Not Found
Cache-Control: private
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET
Date: Wed, 21 Aug 2019 09:56:06 GMT
Content-Length: 5100
...
But sending the following message with a absolute path instead of an absolute URL:
Delete /v1/client HTTP/1.1
Host: test.com
Content-Length: 0
Gives back a 200 message like expected.
What do I need to change on my IIS server so that it would also accept HTTP messages using a absolute URL?
The specifications says that both are allowed so there is no issue with the HttpClient.
IIS logs
#Software: Microsoft Internet Information Services 10.0
#Version: 1.0
#Date: 2019-08-22 08:17:09
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2019-08-22 08:17:09 127.0.0.1 Delete /v1/client/webhook - 80 - 127.0.0.1 - - 404 4 2 3
It looks like an 404.4 - No handler configured error.