Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Youku speed up claiming
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
namespace HttpWebRequestDemo
class Program
async static Task<int> Run(string user, string pass) {
HttpClient client = new HttpClient();
Dictionary<string, string> loginDict= new Dictionary<string, string>();
loginDict.Add("passport", user);
loginDict.Add("password", pass);
loginDict.Add("captcha", "");
loginDict.Add("remember", "1");
loginDict.Add("callback", "logincallback_d");
loginDict.Add("from", "");
loginDict.Add("wintype", "page");
FormUrlEncodedContent loginContent = new FormUrlEncodedContent(loginDict);
HttpResponseMessage response = await client.PostAsync("", loginContent);
await client.GetAsync(response.Headers.Location);
response = await client.PostAsync("", new StringContent(""));
Console.WriteLine(await response.Content.ReadAsStringAsync());
return 0;
static void Main(string[] args)
Task.Run(async () => {
await Run("", "nidemima");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment