http://download.csdn.net/detail/wawd74520/4953432
有一半是人家的
一半是自己的。整理一下发出来c#方法文档

解决方案 »

  1.   

    io   图片匹配坐标  post  get   都会有还有外部浏览器操作
      

  2.   

    using System;
    using System.Collections.Generic;
    using System.Text;namespace QihooPost
    {
        /// <summary>
        /// 奇虎用户库
        /// </summary>
        public class QihooUserInfo
        {
            /// <summary>
            /// 雅虎信息
            /// </summary>
            public QihooCookie QihooCookie { get; set; }
            /// <summary>
            /// 登录用户名
            /// </summary>
            public string LoginName { get; set; }
            /// <summary>
            /// 登录密码
            /// </summary>
            public string LoginPass { get; set; }
            /// <summary>
            /// 上次登录时间
            /// </summary>
            public DateTime LoginTime { get; set; }
            /// <summary>
            /// 上传发布信息时间
            /// </summary>
            public DateTime SendNewsTime { get; set; }
            /// <summary>
            /// 是否为登录状态
            /// </summary>
            public bool IsLogin { get; set; }
            /// <summary>
            /// 该用户目前是否可用
            /// </summary>
            public bool IsPass { get; set; }    }
    }using System;
    using System.Collections.Generic;
    using System.Text;
    using System.IO;
    using System.Runtime.Serialization;
    using System.Runtime.Serialization.Formatters.Binary;
    using System.Net;namespace QihooPost
    {
        /// <summary>
        /// 奇虎cookie
        /// </summary>
        public class QihooCookie
        {
            public CookieContainer mycookie = new CookieContainer();//定义cookie容器
            public Object obj = new Object();
            public byte[] byt = new byte[1];
            public void upcookie(CookieCollection cookie)
            {
                for (int i = 0; i < cookie.Count; i++)
                {
                    mycookie.Add(cookie[i]);
                }
                obj = mycookie;
                byt = ObjectToBytes(obj);
            }
            /**/
            /// <summary>
            /// 将一个object对象序列化,返回一个byte[]
            /// </summary>
            /// <param name="obj">能序列化的对象</param>
            /// <returns></returns>
            public static byte[] ObjectToBytes(object obj)
            {
                using (MemoryStream ms = new MemoryStream())
                {
                    IFormatter formatter = new BinaryFormatter();
                    formatter.Serialize(ms, obj);
                    return ms.GetBuffer();
                }
            }        /**/
            /// <summary>
            /// 将一个序列化后的byte[]数组还原
            /// </summary>
            /// <param name="Bytes"></param>
            /// <returns></returns>
            public object BytesToObject(byte[] Bytes)
            {
                using (MemoryStream ms = new MemoryStream(Bytes))
                {
                    IFormatter formatter = new BinaryFormatter();
                    return formatter.Deserialize(ms);
                }
            }
            public CookieContainer getcookie()
            {
                return mycookie;
            }
        }
    }加上这。奇虎一套就OK了 元旦前测试过的