示例#1
0
文件: HttpEx.cs 项目: coolape/mibao
        public static byte[] readBytes(string url, byte[] data, int?timeout)
        {
            HttpWebResponse res = HttpEx.CreatePostHttpResponse(url, data, timeout);

            byte[] r2 = HttpEx.readBytes(res);
            res.Close();
            return(r2);
        }
示例#2
0
文件: HttpEx.cs 项目: coolape/mibao
        public static string readString(string url, byte[] data, int?timeout)
        {
            HttpWebResponse res = HttpEx.CreatePostHttpResponse(url, data, timeout);
            string          str = HttpEx.readString(res);

            res.Close();
            return(str);
        }