Update curl.md (#1649)

Add curl -F
This commit is contained in:
Cristiane TK 2021-05-05 22:39:07 -03:00 committed by GitHub
parent 85d55d6e13
commit 9762ba1f75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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