V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  xxhjkl  ›  全部回复第 37 页 / 共 50 页
回复总数  987
1 ... 33  34  35  36  37  38  39  40  41  42 ... 50  
你需要 AC68U
2016-06-06 13:33:54 +08:00
回复了 lezhou 创建的主题 Uber 大家平时用滴滴的多还是优步的多
自从看到滴滴司机砍人的帖子,就更不用了
2016-06-06 09:36:09 +08:00
回复了 wdrsam 创建的主题 宽带症候群 100M 电信大家是怎么布置网络的?
LZ 还在信仰 TP 啊 TP 这几年越做越缩水啊
2016-06-02 11:30:46 +08:00
回复了 xxhjkl 创建的主题 宽带症候群 绍兴电信手机端劫持推送广告
@popok 多谢 我昨天投诉今天已经解决
2016-05-25 13:56:29 +08:00
回复了 xxhjkl 创建的主题 分享创造 分享一个优酷提速脚本,请教 c#实现问题。
@luckylion 不换 IP 有时候也会失效的,也要那个开关重新开一次
同求
移动可以黑科技到 100M http://ww4.sinaimg.cn/bmiddle/62e721e4gw1et01xo2nj5j200k00k3y9.jpg 虽然没有公网 IP 但是黑科技到 100M 也不错的
占楼
2016-05-14 22:04:17 +08:00
回复了 xxhjkl 创建的主题 分享创造 分享一个优酷提速脚本,请教 c#实现问题。
上面的是测试账号是不是登录成功的。不是会员号 所以没有加速效果的
2016-05-14 22:03:16 +08:00
回复了 xxhjkl 创建的主题 分享创造 分享一个优酷提速脚本,请教 c#实现问题。
···
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Net;
using System.IO;
using System.IO.Compression;
using System.Text.RegularExpressions;

namespace HttpWebRequestDemo
{
class Program
{
private static readonly string DefaultUserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)";

private static bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors)
{
return true; //总是接受
}

public static HttpWebResponse CreatePostHttpResponse(string url, IDictionary<string, string> parameters, Encoding charset)
{
HttpWebRequest request = null;
//HTTPSQ 请求
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult);
request = WebRequest.Create(url) as HttpWebRequest;
request.ProtocolVersion = HttpVersion.Version10;
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
request.UserAgent = DefaultUserAgent;
//如果需要 POST 数据
if (!(parameters == null || parameters.Count == 0))
{
StringBuilder buffer = new StringBuilder();
int i = 0;
foreach (string key in parameters.Keys)
{
if (i > 0)
{
buffer.AppendFormat("&{0}={1}", key, parameters[key]);
}
else
{
buffer.AppendFormat("{0}={1}", key, parameters[key]);
}
i++;
}
byte[] data = charset.GetBytes(buffer.ToString());
using (Stream stream = request.GetRequestStream())
{
stream.Write(data, 0, data.Length);
}
}
return request.GetResponse() as HttpWebResponse;
}

static void Main(string[] args)
{
string url = "https://login.youku.com/user/login_submit";
string userName = "[email protected]";
string password = "82925272";
long epoch = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000;
string callback = "userNamelogincallback_" + epoch.ToString();
Encoding encoding = Encoding.GetEncoding("utf-8");

IDictionary<string, string> parameters = new Dictionary<string, string>();
parameters.Add("passport", userName);
parameters.Add("password", password);
parameters.Add("captcha", "");
parameters.Add("remember", "1");
parameters.Add("callback", callback);
parameters.Add("from", "http://login.youku.com/@@@@");
parameters.Add("wintype", "page");
HttpWebResponse response = Program.CreatePostHttpResponse(url, parameters, encoding);
//打印返回值
Stream stream = response.GetResponseStream(); //获取响应的字符串流
StreamReader sr = new StreamReader(stream); //创建一个 stream 读取流
string html = sr.ReadToEnd(); //从头读到尾,放到字符串 html
string cookieString = response.Headers["Set-Cookie"];
Console.WriteLine(html);
Console.WriteLine(cookieString);
}
}
}
···

@bdbai
@takwai
@loading
2016-05-14 12:12:30 +08:00
回复了 xxhjkl 创建的主题 分享创造 分享一个优酷提速脚本,请教 c#实现问题。
@loading 你等我晚上发包出来。 http://ww3.sinaimg.cn/bmiddle/62e721e4gw1et02cue46kj200k00k3y9.jpg 昨晚搞到很迟也搞不好 c#
2016-05-14 12:06:18 +08:00
回复了 xxhjkl 创建的主题 分享创造 分享一个优酷提速脚本,请教 c#实现问题。
@loading 抓包对比过了。我等下把包发上来。 post 出去的和官方的登录包都一样的, c#版的死活登不上
1 ... 33  34  35  36  37  38  39  40  41  42 ... 50  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2364 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 38ms · UTC 11:52 · PVG 19:52 · LAX 04:52 · JFK 07:52
Developed with CodeLauncher
♥ Do have faith in what you're doing.