概述
转载请注明出处
http://blog.csdn.net/pony_maggie/article/details/49838191
作者:小马
继续看execute_cgi函数,
if (strcasecmp(method, "GET") ==0)
{
while ((numchars > 0) && strcmp("n", buf)) /* read & discard headers */
numchars = get_line(client, buf, sizeof(buf));
}
else /* POST */
{
numchars = get_line(client, buf, sizeof(buf));
while ((numchars > 0) && strcmp("n", buf))
{
buf[15] = '