I was recently asked how to POST a Raw String Body Using DalSoft RestClient. This reminded me that the documentation for DalSoft RestClient is a little out of date.

Updating the docs has been on my todo list for a while now. So, I'm going to start with a series of posts about what you can do with DalSoft RestClient, I'll then rework these posts into the new docs.

Here's the first post it's a quick one - HTTP POST a Raw String Body Using C#

var client = new RestClient("https://your-server/api"); var response = await client.Resource("your-api-resource").Post("string that you want to post");

Yes, you can do this as one-liner with HttpClient or using one of the plethora of nuget Rest Client Packages, but you would be missing out on easy testing and pipelines then!

Like what you see? There's a lot more head over to the DalSoft RestClient docs and GitHub Repo.