|
bagder: curl/docs/libcurl curl_easy_setopt.3,1.115,1.116: msg#00016web.curl.cvs
Update of /cvsroot/curl/curl/docs/libcurl In directory labb:/tmp/cvs-serv19675 Modified Files: curl_easy_setopt.3 Log Message: elaborate a bit on how to deal with chunked-encoded trailers that now are passed to the app using the header callback Index: curl_easy_setopt.3 =================================================================== RCS file: /cvsroot/curl/curl/docs/libcurl/curl_easy_setopt.3,v retrieving revision 1.115 retrieving revision 1.116 diff -u -d -r1.115 -r1.116 --- curl_easy_setopt.3 26 Jun 2005 10:08:08 -0000 1.115 +++ curl_easy_setopt.3 13 Jul 2005 09:37:22 -0000 1.116 @@ -21,7 +21,7 @@ .\" * $Id$ .\" ************************************************************************** .\" -.TH curl_easy_setopt 3 "24 Jun 2005" "libcurl 7.14.1" "libcurl Manual" +.TH curl_easy_setopt 3 "13 Jul 2005" "libcurl 7.14.1" "libcurl Manual" .SH NAME curl_easy_setopt - set options for a curl easy handle .SH SYNOPSIS @@ -180,6 +180,14 @@ number of bytes actually written or return -1 to signal error to the library (it will cause it to abort the transfer with a \fICURLE_WRITE_ERROR\fP return code). + +Since 7.14.1: When a server sends a chunked encoded transfer, it may contain a +trailer. That trailer is identical to a HTTP header and if such a trailer is +received it is passed to the application using this callback as well. There +are several ways to detect it being a trailer and not an ordinary header: 1) +it comes after the response-body. 2) it comes after the final header line (CR +LF) 3) a Trailer: header among the response-headers mention what header to +expect in the trailer. .IP CURLOPT_WRITEHEADER Pass a pointer to be used to write the header part of the received data to. If you don't use your own callback to take care of the writing, this must be a _______________________________________________ http://cool.haxx.se/mailman/listinfo/curl-commits |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | bagder: curl/docs THANKS,1.24,1.25: 00016, cvs |
|---|---|
| Next by Date: | bagder: curl/docs/libcurl curl_easy_setopt.3,1.116,1.117: 00016, cvs |
| Previous by Thread: | bagder: curl/docs THANKS,1.24,1.25i: 00016, cvs |
| Next by Thread: | bagder: curl/docs/libcurl curl_easy_setopt.3,1.116,1.117: 00016, cvs |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |