Re: webgw500 on alpha

Craig.Watkins@INNOSOFT.COM
Wed, 28 Aug 1996 00:02:15 -0400 (EDT)

> I wondering if anyone has seen this strange problem with webgw500 2.0
> beta on Alpha/Digital Unix. Everything works fine, except that there
> is always some extra web browser information show up at the top of
> each page, like this

> ...

> These info should (and were indeed) sent to the webgw500 server, but
> I cannot figure out how they are also shown up in the output of the
> server.

This is because the c library routine which reads the input from the
socket is "echoing" it back (like terminal echo). One solution is to
fdopen() a second fp and use it for input only with fgets() while
using the original fp for output. I did this quite a while ago
and it worked.

I think this is because of a quirk in the Digital Unix C runtime.

Craig
Innosoft