.NET 4.x Авторизация m.vk.com (Мобильная версия ВКонтакте) - C#
Формулировка задачи:
Кто знает как сделать авторизацию на
m.vk.com
(На нём капчи нет!)? Вот авторизация вvk.com
(А здесь есть капча!):using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using xNet.Net;
namespace WindowsFormsApplication1
{
public class Check
{
public static string Checked(string login, string password)
{
using (var Request = new HttpRequest())
{
HttpResponse Response;
Request.AllowAutoRedirect = false;
Request.UserAgent = HttpHelper.RandomUserAgent();
Request.AllowAutoRedirect = false;
Request.UserAgent = HttpHelper.RandomUserAgent();
Response = Request.Post("https://login.vk.com/?act=login&to=ZmVlZA--&role=pda&utf8=1", "email="+ login+"&pass=" + password);
if (Response.Cookies.ContainsKey("h"))
{
return "True";
}
else
{
return "False";
}
}
}
}
}string chck = Check.Checked(login.Text, pass.Text); // login.Text - texBox где вводится Логин от ВК, pass.Text - texBox где вводится Пароль от ВК.
if (chck == "False")
{
MessageBox.Show("Данные введены не верно!");
}
else if (chck == "True")
{
MessageBox.Show("Данные введены верно!");
}
}Что ни кто в парсинге и запросах не шарит?
Решение задачи: «.NET 4.x Авторизация m.vk.com (Мобильная версия ВКонтакте)»
textual
Листинг программы
if (bodyNode != null && bodyNode.Attributes["action"] != null)