Код: Выделить всё
HttpClient client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri($"https://listing-external-sit.hepsiburada.com/Listings/merchantid/*******/sku/*******/merchantsku/*********"),
Headers =
{
{ "authorization", "Basic *********************" },
{"User-Agent", "*************" }
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
MessageBox.Show(body);
}
Подробнее здесь: https://stackoverflow.com/questions/785 ... ized-error