苏飞论坛
标题:
看妹子小程序源码
[打印本页]
作者:
lrd1986
时间:
2013-1-30 17:48
标题:
看妹子小程序源码
一个下载煎蛋网图片的小程序
作者:
飛向星空的梦
时间:
2013-1-31 17:48
{:soso_e181:}
作者:
幻雪丶逆时光
时间:
2013-2-1 10:03
+1
作者:
淘浩哥
时间:
2013-2-2 16:24
++1
作者:
chanchou
时间:
2013-2-5 22:38
学习依稀啊啊啊啊
作者:
confidentxu
时间:
2013-3-13 20:24
....+++
作者:
世廷Young
时间:
2013-4-4 16:49
真是难得给力的帖子啊,强烈支持
作者:
hnxxd
时间:
2013-8-19 21:16
很强的妹子,感谢你为新手作贡献。
作者:
hn609104271
时间:
2013-10-17 20:03
强烈支持
作者:
坏小孩
时间:
2013-10-21 23:27
飘过、、、、、、、、、
作者:
ヾ啦啦啦
时间:
2013-11-10 14:25
当我下了一堆mm照片后,我笑了 嘿嘿嘿
作者:
mjzxlmg
时间:
2013-12-11 20:45
真是难得给力的帖子啊,强烈支持
作者:
mmgx2013
时间:
2013-12-18 11:05
下载学习了,就要回帖感谢
作者:
handsome8848
时间:
2014-2-5 14:17
已下载,我也对下载妹子图片感兴趣。。。
作者:
2694704603
时间:
2014-2-6 13:31
一看代码都知道是老妹
作者:
夜雨蒙蒙
时间:
2014-2-12 23:40
学习学习!!
作者:
面条先生
时间:
2014-2-13 09:17
给力啊 学习学习
作者:
shaohuatsou
时间:
2014-4-23 00:03
现在没时间看,先留个记号,回头细细品味!
作者:
越狱
时间:
2014-5-7 15:14
干小妹的奸蛋网~~~
作者:
yuzsshuihan
时间:
2014-5-15 23:07
受教了,学习中……
作者:
lechenging
时间:
2014-5-16 08:33
源码呢
作者:
夕阳夏
时间:
2014-5-25 19:35
水积分的吧
作者:
夕阳夏
时间:
2014-5-25 19:35
水积分的吧
作者:
1107655988
时间:
2014-5-27 08:48
wolaikanyiukan 非常感谢你帮了我的大忙,真的太感谢你啦!
作者:
等不到的天黑
时间:
2014-7-11 10:28
受教了,学习中……
作者:
Kenney
时间:
2014-7-17 17:09
已发现BUG,注释的内容会提示403错误 替换为下面的就OK 还是飞哥的厉害
//webContent = null;
//if (string.IsNullOrEmpty(url))
//{
// return false;
//}
//bool result = false;
//try
//{
// HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(url);
// httpWebRequest.Timeout = 30000;
// httpWebRequest.Headers.Add("Accept", "text/html, application/xhtml+xml, */*");
// httpWebRequest.Headers.Add("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0");
// httpWebRequest.Headers.Set("Pragma", "no-cache");
// HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
// Stream responseStream = httpWebResponse.GetResponseStream();
// StreamReader streamReader = new StreamReader(responseStream, ec);
// webContent = streamReader.ReadToEnd();
// result = true;
//}
//catch
//{
// result = false;
//}
//return result;
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = url,//URL 必需项
Method = "GET",//URL 可选项 默认为Get
Timeout = 100000,//连接超时时间 可选项默认为100000
ReadWriteTimeout = 30000,//写入Post数据超时时间 可选项默认为30000
IsToLower = false,//得到的HTML代码是否转成小写 可选项默认转小写
Cookie = "",//字符串Cookie 可选项
UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0",//用户的浏览器类型,版本,操作系统 可选项有默认值
Accept = "text/html, application/xhtml+xml, */*",// 可选项有默认值
ContentType = "text/html",//返回类型 可选项有默认值
Referer = "http://www.sufeinet.com",//来源URL 可选项
//Allowautoredirect = true,//是否根据301跳转 可选项
//CerPath = "d:\123.cer",//证书绝对路径 可选项不需要证书时可以不写这个参数
//Connectionlimit = 1024,//最大连接数 可选项 默认为1024
Postdata = "",//Post数据 可选项GET时不需要写
//ProxyIp = "192.168.1.105",//代理服务器ID 可选项 不需要代理 时可以不设置这三个参数
//ProxyPwd = "123456",//代理服务器密码 可选项
//ProxyUserName = "administrator",//代理服务器账户名 可选项
//ResultType = ResultType.String,//返回数据类型,是Byte还是String
};
HttpResult result = http.GetHtml(item);
string html = result.Html;
string cookie = result.Cookie;
byte[] b = result.ResultByte;
webContent = html;
作者:
小清奈
时间:
2014-7-23 00:24
谢谢分享!!!!!!!!!
作者:
啊Q皇弟
时间:
2014-8-3 01:12
NXX 不错
作者:
wdfgta
时间:
2014-8-11 16:06
强烈支持楼主ing……
作者:
项庄舞剑
时间:
2014-8-29 09:53
真是难得给力的帖子啊。
作者:
ching126
时间:
2014-9-12 07:00
留个脚印表示我来过!
作者:
lodog1
时间:
2015-7-17 19:25
学习了!!!!
作者:
liquid
时间:
2016-1-27 12:46
煎蛋网是什么东西
作者:
baiwei
时间:
2017-5-4 14:06
强烈支持楼主ing……
作者:
yituoputao
时间:
2019-12-13 13:56
妹子感谢你
欢迎光临 苏飞论坛 (http://www.sufeinet.com/)
Powered by Discuz! X3.4