I am trying to send the data in POST API and tried the genrated code from postman. But the line "request.AlwaysMultipartFormData = true;" is giving error "RestRequest does not contain a definition for AlwaysMultipartFormData". If i remove the line, then I am facing the error "Invalid URI: The Uri string is too long."
var client = new RestClient("http://localhost:4000/xxx.php");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
**request.AlwaysMultipartFormData = true;** // had to remove
request.AddParameter("htmlstring", htmlstring);
IRestResponse response = client.Execute(request);
var base64 = response.Content;
return base64;