HTTP запрос методом PATCH

tatarin

Client
Регистрация
28.10.2012
Сообщения
795
Благодарностей
131
Баллы
43
Как сделать? Нашел пару примеров на форуме, но в c# не понимаю! Попробывал но куча ошибок, как исправить это:

string url = project.Variables["url"].Value;
string data = project.Variables["data"].Value;
string contentpostingtype = project.Variables["contentpostingtype"].Value;
string proxy = project.Variables["proxy"].Value;
string encoding = project.Variables["encoding"].Value;
string timeout = project.Variables["timeout"].Value;
string cookies = project.Variables["cookies"].Value;
string useragent = project.Variables["useragent"].Value;
string useredirect = project.Variables["useredirect"].Value;
string maxredirectcount = project.Variables["maxredirectcount"].Value;
string result_recaptcha = project.Variables["result_recaptcha"].Value;
var response = ZennoPoster.HTTP.Request(ZennoLab.InterfacesLibrary.Enums.Http.HttpMethod.PATCH,
url,
data,
contentpostingtype,
proxy,
encoding,
ZennoLab.InterfacesLibrary.Enums.Http.ResponceType.HeaderAndBody,
timeout,
cookies,
useragent,
useredirect,
maxredirectcount,
AdditionalHeaders: new []{"Accept-Language: en-US,en;q=0.6", "Accept-Encoding: gzip, deflate", "nh-ui-version: WP production v5.7.9_3_g86aeb0", "Cache-Control: no-cache", "X-Recaptcha: " + result_recaptcha, "Referer: https://site.com/", "Cookie: " + cookies, "Connection: keep-alive"}
);
return response;

Спасибо!
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)