您好,欢迎光临本网站![请登录][注册会员]  
文件名称: C#秒拍源码
  所属分类: C#
  开发工具:
  文件大小: 814kb
  下载次数: 0
  上传时间: 2015-01-14
  提 供 者: code****
 详细说明: //用于登录 public bool Login(string userName, string password, out CookieCollection ccReturned) { HttpWebRequest request; HttpWebResponse response; request = (HttpWebRequest)HttpWebRequest.Create("http://login.taobao.com/member/login.jhtml"); request.CookieContainer = new CookieContainer(); string data = @"TPL_username=" + userName + "&TPL_password=" + password + "&TPL_checkcode=&need_check_code =&_tb_token_=3ae3d5fe1558&action=Authenticator&event_submit_do_login=anything&TPL_redirect_url=&from=tb&fc=2&style=default&css_style=&tid=XOR_1_000000000000000000000000000000_6A583326340B7D790D7C017F&support=000001&CtrlVersion=1%2C0%2C0%2C7&loginType=3&minititle=&minipara=&umto=Tc3d70457869e730a9a1c0256c50b5d0e%2C200&pstrong=2&llnick=&sign=&need_sign=&isIgnore=&full_redirect=&popid=&callback=&guf=¬_duplite_str=&need_user_id=&poy=&gvfdcname=10&gvfdcre=&from_encoding="; byte[] postData = Encoding.Default.GetBytes(data); request.Method = "POST"; request.ProtocolVersion = HttpVersion.Version11; //request.Connection = "keep-alive"; request.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.861.0 Safari/535.2"; request.ContentType = "application/x-www-form-urlencoded"; request.ContentLength = postData.Length; request.Referer = " http://login.taobao.com/member/login.jhtml"; request.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"; //request.Headers.Add("Connection", "keep-alive"); request.Headers.Add("Cache-Control", "max-age=0"); request.Headers.Add("Origin", "http://login.taobao.com"); request.Headers.Add("Accept-Encoding", "gzip,deflate,sdch"); request.Headers.Add("Accept-Language", "zh-CN,zh;q=0.8"); request.Headers.Add("Accept-Charset", "GBK,utf-8;q=0.7,*;q=0.3"); Stream st = request.GetRequestStream(); st.Write(postData, 0, postData.Length); st.Close(); request.AllowAutoRedirect = false; response = (HttpWebResponse)request.GetResponse(); ccReturned = response.Cookies; response.Close(); return ccReturned == null? false: true; } ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: C# 秒拍 抢购 源码
 输入关键字,在本站1000多万海量源码库中尽情搜索: