Loading docs/cmdline-opts/form.d +3 −3 Original line number Original line Diff line number Diff line Loading @@ -25,9 +25,9 @@ the form-field to which portrait.jpg will be the input: curl -F profile=@portrait.jpg https://example.com/upload.cgi curl -F profile=@portrait.jpg https://example.com/upload.cgi To read content from stdin instead of a file, use - as the filename. This goes To read content from stdin instead of a file, use - as the filename. This goes for both @ and < constructs. Unfortunately it does not support reading the for both @ and < constructs. For this case, as well as for others in which the file from a named pipe or similar, as it needs the full size before the full data size cannot be determined before the transfer starts (as named pipes transfer starts. or similar), data is transferred as chunks by HTTP and rejected by IMAP. You can also tell curl what Content-Type to use by using 'type=', in a manner You can also tell curl what Content-Type to use by using 'type=', in a manner similar to: similar to: Loading docs/libcurl/curl_formadd.3 +4 −1 Original line number Original line Diff line number Diff line Loading @@ -172,7 +172,10 @@ you've called \fIcurl_easy_cleanup(3)\fP for the curl handle. See example below. See example below. .SH AVAILABILITY .SH AVAILABILITY Deprecated in 7.56.0. Before this release, field names were allowed to Deprecated in 7.56.0. Before this release, field names were allowed to contain zero-valued bytes. contain zero-valued bytes. The pseudo-filename "-" to read stdin is discouraged although still supported, but data is not read before being actually sent: the effective data size can then not be automatically determined, resulting in a chunked encoding transfer. .SH RETURN VALUE .SH RETURN VALUE 0 means everything was ok, non-zero means an error occurred corresponding 0 means everything was ok, non-zero means an error occurred corresponding to a CURL_FORMADD_* constant defined in to a CURL_FORMADD_* constant defined in Loading docs/libcurl/curl_mime_filedata.3 +5 −1 Original line number Original line Diff line number Diff line Loading @@ -36,7 +36,7 @@ data to a mime part. \fIpart\fP is the part's to assign contents to. \fIpart\fP is the part's to assign contents to. \fIfilename\fP points to the nul-terminated file's path name. The pointer can \fIfilename\fP points to the nul-terminated file's path name. The pointer can be NULL to detach previous part contents settings. Filename storage can be be NULL to detach the previous part contents settings. Filename storage can be safely be reused after this call. safely be reused after this call. As a side effect, the part's remote file name is set to the base name of the As a side effect, the part's remote file name is set to the base name of the Loading @@ -47,6 +47,10 @@ The contents of the file is read during the file transfer in a streaming manner to allow huge files to get transfered without using much memory. It manner to allow huge files to get transfered without using much memory. It therefore requires that the file is kept intact during the entire request. therefore requires that the file is kept intact during the entire request. If the file size cannot be determined before actually reading it (such as for a device or named pipe), the whole mime structure containing the part will be transferred as chunks by HTTP and rejected by IMAP. Setting a part's contents twice is valid: only the value set by the last call Setting a part's contents twice is valid: only the value set by the last call is retained. is retained. .SH AVAILABILITY .SH AVAILABILITY Loading Loading
docs/cmdline-opts/form.d +3 −3 Original line number Original line Diff line number Diff line Loading @@ -25,9 +25,9 @@ the form-field to which portrait.jpg will be the input: curl -F profile=@portrait.jpg https://example.com/upload.cgi curl -F profile=@portrait.jpg https://example.com/upload.cgi To read content from stdin instead of a file, use - as the filename. This goes To read content from stdin instead of a file, use - as the filename. This goes for both @ and < constructs. Unfortunately it does not support reading the for both @ and < constructs. For this case, as well as for others in which the file from a named pipe or similar, as it needs the full size before the full data size cannot be determined before the transfer starts (as named pipes transfer starts. or similar), data is transferred as chunks by HTTP and rejected by IMAP. You can also tell curl what Content-Type to use by using 'type=', in a manner You can also tell curl what Content-Type to use by using 'type=', in a manner similar to: similar to: Loading
docs/libcurl/curl_formadd.3 +4 −1 Original line number Original line Diff line number Diff line Loading @@ -172,7 +172,10 @@ you've called \fIcurl_easy_cleanup(3)\fP for the curl handle. See example below. See example below. .SH AVAILABILITY .SH AVAILABILITY Deprecated in 7.56.0. Before this release, field names were allowed to Deprecated in 7.56.0. Before this release, field names were allowed to contain zero-valued bytes. contain zero-valued bytes. The pseudo-filename "-" to read stdin is discouraged although still supported, but data is not read before being actually sent: the effective data size can then not be automatically determined, resulting in a chunked encoding transfer. .SH RETURN VALUE .SH RETURN VALUE 0 means everything was ok, non-zero means an error occurred corresponding 0 means everything was ok, non-zero means an error occurred corresponding to a CURL_FORMADD_* constant defined in to a CURL_FORMADD_* constant defined in Loading
docs/libcurl/curl_mime_filedata.3 +5 −1 Original line number Original line Diff line number Diff line Loading @@ -36,7 +36,7 @@ data to a mime part. \fIpart\fP is the part's to assign contents to. \fIpart\fP is the part's to assign contents to. \fIfilename\fP points to the nul-terminated file's path name. The pointer can \fIfilename\fP points to the nul-terminated file's path name. The pointer can be NULL to detach previous part contents settings. Filename storage can be be NULL to detach the previous part contents settings. Filename storage can be safely be reused after this call. safely be reused after this call. As a side effect, the part's remote file name is set to the base name of the As a side effect, the part's remote file name is set to the base name of the Loading @@ -47,6 +47,10 @@ The contents of the file is read during the file transfer in a streaming manner to allow huge files to get transfered without using much memory. It manner to allow huge files to get transfered without using much memory. It therefore requires that the file is kept intact during the entire request. therefore requires that the file is kept intact during the entire request. If the file size cannot be determined before actually reading it (such as for a device or named pipe), the whole mime structure containing the part will be transferred as chunks by HTTP and rejected by IMAP. Setting a part's contents twice is valid: only the value set by the last call Setting a part's contents twice is valid: only the value set by the last call is retained. is retained. .SH AVAILABILITY .SH AVAILABILITY Loading