mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
Correct default upload mimetype in manual
The default content-type for file uploads is application/octet-stream, not text/plain as stated in the MANUAL.
This commit is contained in:
parent
cd4cd66839
commit
612a61b267
@ -328,7 +328,7 @@ POST (HTTP)
|
|||||||
If the content-type is not specified, curl will try to guess from the file
|
If the content-type is not specified, curl will try to guess from the file
|
||||||
extension (it only knows a few), or use the previously specified type (from
|
extension (it only knows a few), or use the previously specified type (from
|
||||||
an earlier file if several files are specified in a list) or else it will
|
an earlier file if several files are specified in a list) or else it will
|
||||||
using the default type 'text/plain'.
|
use the default type 'application/octet-stream'.
|
||||||
|
|
||||||
Emulate a fill-in form with -F. Let's say you fill in three fields in a
|
Emulate a fill-in form with -F. Let's say you fill in three fields in a
|
||||||
form. One field is a file name which to post, one field is your name and one
|
form. One field is a file name which to post, one field is your name and one
|
||||||
|
Loading…
x
Reference in New Issue
Block a user