I was using the extension method ToHttpRequestMessage()
from System.ServiceModel.Channels.MessageExtensionMethods
Source code for MessageExtensionMethods
I created a HttpRequestMessage
from Message
using the extension method in the above link. Then i used this HttpRequestMessage
to be sent via HttpClient
but I got the following exception
Cannot send a content-body with this verb-type
Cannot send a content-body with this verb-type
Does that mean that I cannot use the extension method or do I have to do anything specific for GET
calls such as not setting the content-body?