summaryrefslogtreecommitdiff
path: root/lib/mime.h
Commit message (Collapse)AuthorAgeFilesLines
* mime: improve unbinding top multipart from easy handle.Patrick Monnerat2017-10-081-0/+2
| | | | Also avoid dangling pointers in referencing parts.
* form/mime: field names are not allowed to contain zero-valued bytes.Patrick Monnerat2017-09-221-1/+0
| | | | | Also suppress length argument of curl_mime_name() (names are always zero-terminated).
* mime: drop internal FILE * support.Patrick Monnerat2017-09-061-5/+2
| | | | | | | | - The part kind MIMEKIND_FILE and associated code are suppressed. - Seek data origin offset not used anymore: suppressed. - MIMEKIND_NAMEDFILE renamed MIMEKIND_FILE; associated fields/functions renamed accordingly. - Curl_getformdata() processes stdin via a callback.
* mime: replace 'struct Curl_mimepart' by 'curl_mimepart' in encoder code.Patrick Monnerat2017-09-051-4/+4
| | | | mime_state is now a typedef.
* mime: implement encoders.Patrick Monnerat2017-09-051-1/+21
| | | | | | | | curl_mime_encoder() is operational and documented. curl tool -F option is extended with ";encoder=". curl tool --libcurl option generates calls to curl_mime_encoder(). New encoder tests 648 & 649. Test 1404 extended with an encoder specification.
* mime: unified to use the typedef'd mime structs everywhereDaniel Stenberg2017-09-051-35/+35
| | | | ... and slightly edited to follow our code style better.
* mime: new MIME API.Patrick Monnerat2017-09-021-0/+119
Available in HTTP, SMTP and IMAP. Deprecates the FORM API. See CURLOPT_MIMEPOST. Lib code and associated documentation.