Need to pass `Client-Id` header parameter from c#

2019-08-18 11:29发布

问题:

I have a Curl in Swagger Resp Api as curl -X POST "https://petstore.swagger.io/v2/pet/11" -H "accept: application/xml" -H "Content-Type: application/x-www-form-urlencoded" -H "Client-Id: example.demo.com" -d "name=James&status=K" How can I pass the Client-Id from c# code using HttpClient() request header