cURL / Mailing Lists / curl-library / Single Mail

curl-library

patch for libcurl-7.8

From: Georg Huettenegger <georg_at_ist.org>
Date: Tue, 17 Jul 2001 11:10:39 +0200 (CEST)

hi,

in the last days i was playing around with w3c-libwww and libcurl and
made some modifications to accomodate my needs (at least as i see them
now).

the patch i have included does the following things:

o) changed some char * to const char * to make the compiler happy
(although there are quite a number of char * that could be made to const
char *)

o) added a new function named curl_formadd that gets the name and the
value supplied by the user instead of trying to parse the input string
(like in curl_formparse)

o) added a Curl_FastFormReader function that tries to fill the given
buffer as much as possible instead of just trying to write one line as
Curl_FormReader does

o) http.c does set fread to Curl_FastFormReader in case the new
CURLOPT_HTTPPOST_FASTFORMREADER option is set instead of setting it to
Curl_FormReader

o) added a 100-continue handshake for the form/data HTTP POST controlled
bye the new CURLOPT_HTTPPOST_USECONTINUE option. this means that http.c
adds the new Expect: 100-continue field to the header and already writes
the Content-Type: header field plus the end of the header so that
transfer.c is able to read the answer before doing the actual transfer.
[this change was inspired by the behaviour of w3c-libwww and greatly
reduces the delay of single post operations in a lan environment.]

o) when writing is done within transfer.c clear the writesocket so that
select does not keep waking the select call with the write file descriptor

hope the patch file is fine and that my changes (if they are
acceptable) are incorporated into the next curl version.

bye,
 georg

_______________________________________________
Curl-library mailing list
http://curl.haxx.se/libcurl/

Received on 2001-07-17