mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:53:37 +03:00
This makes formposting with a specified file missing fail. curl_easy_perform
will then return CURLE_READ_ERROR.
This commit is contained in:
parent
9549cfde02
commit
95f78080ab
3 changed files with 30 additions and 14 deletions
|
|
@ -562,7 +562,13 @@ CURLcode Curl_http(struct connectdata *conn)
|
|||
if(HTTPREQ_POST_FORM == data->set.httpreq) {
|
||||
/* we must build the whole darned post sequence first, so that we have
|
||||
a size of the whole shebang before we start to send it */
|
||||
http->sendit = Curl_getFormData(data->set.httppost, &http->postsize);
|
||||
result = Curl_getFormData(&http->sendit, data->set.httppost,
|
||||
&http->postsize);
|
||||
if(CURLE_OK != result) {
|
||||
/* Curl_getFormData() doesn't use failf() */
|
||||
failf(data, "failed creating formpost data");
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
if(!checkheaders(data, "Host:")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue