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);
Console.WriteLine(response.Content);
}

Compared to this in post man

Duplicate

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