Skip to content

Instantly share code, notes, and snippets.

@qwerty2501
qwerty2501 / gist:2943430
Created June 17, 2012 04:40
C#でのニコ動ログイン(動く)
public bool DeepLogin()
{
bool login = false;//ログイン成否
HttpWebRequest req = WebRequest.CreateHttp(new Uri(deepLoginUrl, UriKind.Absolute));
req.Method = "POST";
req.ContentType = "application/x-www-form-urlencoded";
req.CookieContainer = App.ViewModel.UserSetting.cc;
using (StreamWriter sw = new StreamWriter(req.GetRequestStreamAsync().GetAwaiter().GetResult()))
{