Http Post Request C# in Zenno Doesnt work

Patrick

Client
Регистрация
30.07.2016
Сообщения
68
Благодарностей
2
Баллы
8
Hello I got issue with apply C# code in zennoposter, can someone help little adapt my C# working code for C#?
using (WebClient client = new WebClient())
{
client.Proxy = new WebProxy(PHost,PPort);

client.Headers.Add("User-Agent",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0");
client.Headers.Add("Accept", " */*");
client.Headers.Add("Accept-Language", "en-US,en;q=0.5");
client.Headers.Add("Referer", "https://accounts.snapchat.com/");
client.Headers.Add("Cookie",
"xsrf_token=PlEcin8s5H600toD4Swngg; sc-cookies-accepted=true; web_client_id=b1e4a3c7-4a38-4c1a-9996-2c4f24f7f956; oauth_client_id=c2Nhbg==");
client.Headers.Add("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");

response = client.UploadString("https://accounts.snapchat.com/accounts/get_username_suggestions", "requested_username="+username+ "&xsrf_token=PlEcin8s5H600toD4Swngg");

}
return response;
 

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