Beispiel #1
0
/// <summary>
/// 包装 POST 发送
/// </summary>
/// <param name="url"></param>
/// <param name="code"></param>
/// <returns></returns>
        public ArrayList sqlliist(string url, string code, HttpHeader header)
        {
            ArrayList assembly = new ArrayList();

            CookieClass cookieClass = CookieClass.Instance;

            ArrayList postget = new ArrayList();

            ArrayList arrylistpost = new ArrayList();

            String req = SendDataByPost(url, code, ref cookieClass.cookie, out arrylistpost, header);

            if (req == "" && arrylistpost.Count > 0)
            {
                postget = arrylistpost;
            }
            else
            {
                if (req != "")
                {
                    throw new Exception("HTTP异常:" + req);
                }
            }

            return(postget);
        }
Beispiel #2
0
        /// <summary>
        /// 包装 GET 发送获取imag
        /// </summary>
        /// <param name="url"></param>
        /// <param name="code"></param>
        /// <returns></returns>
        public void sqlliistGetimag(string url, string code, HttpHeader header, ref HttpWebResponse postgetpic)
        {
            // ArrayList assembly = new ArrayList();

            CookieClass cookieClass = CookieClass.Instance;

            String req = SendDataByGetimag(url, code, ref cookieClass.cookie, ref postgetpic, header);

            if (req == "")
            {
            }
            else
            {
                if (req != "")
                {
                    throw new Exception("HTTP异常:" + req);
                }
                else
                {
                    // postgetpic = null;
                }
            }
        }