Esempio n. 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);
        }
Esempio n. 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);
        }