comparison mupdf-source/thirdparty/curl/docs/libcurl/curl_mime_name.3 @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 .\" **************************************************************************
2 .\" * _ _ ____ _
3 .\" * Project ___| | | | _ \| |
4 .\" * / __| | | | |_) | |
5 .\" * | (__| |_| | _ <| |___
6 .\" * \___|\___/|_| \_\_____|
7 .\" *
8 .\" * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
9 .\" *
10 .\" * This software is licensed as described in the file COPYING, which
11 .\" * you should have received as part of this distribution. The terms
12 .\" * are also available at https://curl.haxx.se/docs/copyright.html.
13 .\" *
14 .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 .\" * copies of the Software, and permit persons to whom the Software is
16 .\" * furnished to do so, under the terms of the COPYING file.
17 .\" *
18 .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 .\" * KIND, either express or implied.
20 .\" *
21 .\" **************************************************************************
22 .TH curl_mime_name 3 "22 August 2017" "libcurl 7.56.0" "libcurl Manual"
23 .SH NAME
24 curl_mime_name - set a mime part's name
25 .SH SYNOPSIS
26 .B #include <curl/curl.h>
27 .sp
28 .BI "CURLcode curl_mime_name(curl_mimepart * " part ", const char * " name ");"
29 .ad
30 .SH DESCRIPTION
31 \fIcurl_mime_name(3)\fP sets a mime part's name. This is the way HTTP form
32 fields are named.
33
34 \fIpart\fP is the part's handle to assign a name to.
35
36 \fIname\fP points to the zero-terminated name string.
37
38 The name string is copied into the part, thus the associated storage may
39 safely be released or reused after call. Setting a part's name twice is valid:
40 only the value set by the last call is retained. It is possible to "unname" a
41 part by setting \fIname\fP to NULL.
42 .SH AVAILABILITY
43 As long as at least one of HTTP, SMTP or IMAP is enabled. Added in 7.56.0.
44 .SH RETURN VALUE
45 CURLE_OK or a CURL error code upon failure.
46 .SH EXAMPLE
47 .nf
48 curl_mime *mime;
49 curl_mimepart *part;
50
51 /* create a mime handle */
52 mime = curl_mime_init(easy);
53
54 /* add a part */
55 part = curl_mime_addpart(mime);
56
57 /* give the part a name */
58 curl_mime_name(part, "shoe_size");
59 .fi
60 .SH "SEE ALSO"
61 .BR curl_mime_addpart "(3),"
62 .BR curl_mime_data "(3),"
63 .BR curl_mime_type "(3)"