3.13Setting URL-Encoded Form Content

Created on Aug 17, 2026~2 min read

Sets the request's content type to application/x-www-form-urlencoded and sends form data.

cs
HttpRequestBuilder.Post("https://furion.net/")    .SetFormUrlEncodedContent(new { id = 1, name = "Furion" });HttpRequestBuilder.Post("https://furion.net/")    .SetFormUrlEncodedContent(new { id = 1, name = "Furion" }, useStringContent: true); // Uses StringContent to resolve the FormUrlEncodedContent encoding issue// Supports URL-encoded string formatHttpRequestBuilder.Post("https://furion.net/")    .SetFormUrlEncodedContent("id=1&name=furion", useStringContent: true);HttpRequestBuilder.Post("https://furion.net/")    .SetFormUrlEncodedContent(new { id = 1, name = "Furion" }, urlEncode: false); // Can be configured to skip URL encoding