I'm using the code below to read data from a stream. I packet sniffed my outgoing request and it looks fine and i get the proper header back, but all i get for the data is a lone 0. I've tried increasing the buffersize, but that didn't do anything. I also tried putting in a pause in case it was trying to read data before it was there, but that didn't work either. Thanks for any help

StringBuilder sb = new StringBuilder();
byte[] buf = new byte[1024]; 
string tempString = null;
int count = 0;
sb.Remove(0, sb.Length);
    count = stream.Read(buf, 0, buf.Length);
    if (count != 0)
        tempString = Encoding.ASCII.GetString(buf, 0, count);
while (count > 0);