BPCSharp.BluePayPayment_BP10Emu.responseParams C# (CSharp) Method

responseParams() public method

public responseParams ( HttpWebResponse httpResponse ) : string
httpResponse System.Net.HttpWebResponse
return string
        public string responseParams(HttpWebResponse httpResponse)
        {
            Stream receiveStream = httpResponse.GetResponseStream();
            Encoding encode = System.Text.Encoding.GetEncoding("utf-8");
            // Pipes the stream to a higher level stream reader with the required encoding format.
            StreamReader readStream = new StreamReader(receiveStream, encode);
            Char[] read = new Char[512];
            int count = readStream.Read(read, 0, 512);
            while (count > 0)
            {
                // Dumps the 256 characters on a string and displays the string to the console.
                String str = new String(read, 0, count);
                response = response + HttpUtility.UrlDecode(str);
                count = readStream.Read(read, 0, 512);
            }
            httpResponse.Close();
            return response;
        }