bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Gawk [maynot] bug: Two-way IO getline stuff


From: wxc
Subject: Gawk [maynot] bug: Two-way IO getline stuff
Date: Fri, 24 Jul 2009 09:25:50 +0800
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)

Dear All,

http://www.gnu.org/software/gawk/manual/gawkinet/gawkinet.html

In this page, the manual bring a simple web server with GET-method handler.
My question is how can awk proccess a POST request?

since, in a http POST request header, content-lengh are supplied
clarifying the length of post-data, after the header, there are exactly
content-lengh bytes of post-data without any new line or something, that
means if getline try to read them, it get stuck waiting for the RS.

i think gawk may add some buffer control stuff, such as "getline var
NUMBER" means read exactly NUMBER bytes from input, "getline var NUMBER1
NUMBER2" means read NUMBER1 bytes with timeout NUMBER2 seconds.

Regards,
Wen






reply via email to

[Prev in Thread] Current Thread [Next in Thread]