httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (David Robinson)
Subject Re: Member List
Date Tue, 14 Mar 1995 14:54:00 GMT
rst wrote:
>Randy --- I looked your form over, and found what may be part of
>the problem.  The cgi-postin.c code that you're using expects to
>be able to get the entire request body out of the socket in one
>C-library read call --- 
This is correct. You are only likely to read as much data as you requested
if you are reading from a regular file, otherwise you will only get as much
as is available. In this case, you will probably get the remainder of the
first packet after the headers have been removed.

Moral: use fread(), not read().


View raw message