From 9762ba1f751be0a19f29c344ff56989c85f97cbe Mon Sep 17 00:00:00 2001 From: Cristiane TK <62188548+crispy-tk@users.noreply.github.com> Date: Wed, 5 May 2021 22:39:07 -0300 Subject: [PATCH] Update curl.md (#1649) Add curl -F --- curl.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/curl.md b/curl.md index 7606842b5..419e3fb7c 100644 --- a/curl.md +++ b/curl.md @@ -29,7 +29,8 @@ updated: 2020-03-09 ```bash -X POST # --request --L # follow link if page redirects +-L # follow link if page redirects +-F # --form: HTTP POST data for multipart/form-data ``` ### Data @@ -79,6 +80,9 @@ curl -u user:pass -d status="Hello" http://twitter.com/statuses/update.xml ```bash # multipart file upload curl -v -include --form key1=value1 --form upload=@localfilename URL + +# multipart form: send data from text field and upload file +curl -F person=anonymous -F secret=@file.txt http://example.com/submit.cgi ``` ```bash