Errors in HTTP Request post

async System.Threading.Tasks.Task MakeRequestAsync()
var client = new RestSharp.RestClient(“URL”);
client.Timeout = -1;
var request = new RestSharp.RestRequest(“END POINT”, Method.Post);
request.AddHeader(“Content-Type”, “application/zip”);
request.AddParameter(“application/zip”, “file contents here”, ParameterType.RequestBody);
RestSharp.IRestResponse response = await client.ExecuteAsync(request);

Compared to this in post man


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.