Need to pass `Client-Id` header parameter from c# code using HttpClient() to call a Rest API Post method

﹥>﹥吖頭↗ 提交于 2019-12-11 19:16:01

问题


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

来源:https://stackoverflow.com/questions/54677459/need-to-pass-client-id-header-parameter-from-c-sharp-code-using-httpclient-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!