mirror of
https://github.com/curl/curl.git
synced 2026-08-25 15:33:39 +03:00
mime: use in curl cli tool instead of form API.
Extended -F option syntax to support multipart mail messages. -F keyword headers= added to include custom headers in parts. Documentation upgraded.
This commit is contained in:
parent
ce0881edee
commit
fec7a858b8
17 changed files with 785 additions and 473 deletions
|
|
@ -1606,11 +1606,11 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
to sort this out slowly and carefully */
|
||||
if(formparse(config,
|
||||
nextarg,
|
||||
&config->httppost,
|
||||
&config->last_post,
|
||||
&config->mimepost,
|
||||
&config->mimecurrent,
|
||||
(subletter=='s')?TRUE:FALSE)) /* 's' means literal string */
|
||||
return PARAM_BAD_USE;
|
||||
if(SetHTTPrequest(config, HTTPREQ_FORMPOST, &config->httpreq))
|
||||
if(SetHTTPrequest(config, HTTPREQ_MIMEPOST, &config->httpreq))
|
||||
return PARAM_BAD_USE;
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue