mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:03:36 +03:00
- Added CURLFORM_STREAM as a supported option to curl_formadd() to allow an
application to provide data for a multipart with the read callback. Note that the size needs to be provided with CURLFORM_CONTENTSLENGTH when the stream option is used. This feature is verified by the new test case 554. This feature was sponsored by Xponaut.
This commit is contained in:
parent
1e482fe6a8
commit
a2314225e0
10 changed files with 340 additions and 78 deletions
|
|
@ -2507,6 +2507,8 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
|
|||
}
|
||||
|
||||
/* set the read function to read from the generated form data */
|
||||
http->form.fread_func = conn->fread_func; /* get the previously set callback
|
||||
function pointer */
|
||||
conn->fread_func = (curl_read_callback)Curl_FormReader;
|
||||
conn->fread_in = &http->form;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue