Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Stream resStream = response.GetResponseStream();
- StringBuilder sb = new StringBuilder();
- byte[] buf = new byte[512];
- int count;
- do {
- count = resStream.Read(buf, 0, buf.Length);
- if (count == 0) continue;
- string tempString = Encoding.ASCII.GetString(buf, 0, count);
- sb.Append(tempString);
- }
- while (count > 0);
- response.Close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement