var user = "user"; //поменять на свое
var password = "password"; //поменять на свое
var b64 = Convert.ToBase64String(Encoding.UTF8.GetBytes(user+":"+password));
return ZennoPoster.HttpPost(
url: "http://site.com/wp-json/wp/v2/posts/49?_method=DELETE",
content: "",
contentPostingType: "",
proxy: "http://localhost:8888",
Encoding: "UTF8",
respType: InterfacesLibrary.Enums.Http.ResponceType.BodyOnly,
Timeout: 30000,
Cookies: "",
UserAgent: "curl/7.38.0",
UseRedirect: false,
MaxRedirectCount: 0,
AdditionalHeaders: new String[] {
"Authorization: Basic " + b64,
"Accept: */*",
"Connection: Keep-Alive"
}
);