do {
while (1) {
InputTestConsumer::OnDataAvailable(nsIChannel* channel,                                   nsISupports* context,                                   nsIInputStream *aIStream,                                    PRUint32 aSourceOffset,                                   PRUint32 aLength){  char buf[1025];  PRUint32 amt;  do {    aIStream->Read(buf, 1024, &amt);    if (amt == 0) break;    buf[amt] = '\0';    puts(buf);  } while (amt != 0);  return NS_OK;}