C# Web API Sending Body Data in HTTP Post REST Client
问题 I need to send this HTTP Post Request: POST https://webapi.com/baseurl/login Content-Type: application/json {"Password":"password", "AppVersion":"1", "AppComments":"", "UserName":"username", "AppKey":"dakey" } It works great in RestClient and PostMan just like above. I need to have this pro-grammatically and am not sure if to use WebClient, HTTPRequest or WebRequest to accomplish this. The problem is how to format the Body Content and send it above with the request. Here is where I am with