Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }