Add curl form-file

This commit is contained in:
Wilfried OLLIVIER 2021-03-04 09:54:42 +01:00
parent 6ebc135320
commit 03f0ad847e
2 changed files with 10 additions and 0 deletions

View File

@ -38,6 +38,7 @@
- [Debian](./ops/gnulinux/debian.md)
- [Shell Tips](./ops/shelltips.md)
- [Tools](./ops/tools/main.md)
- [Curl](./ops/tools/curl.md)
- [Ansible](./ops/tools/ansible.md)
- [Docker](./ops/tools/docker.md)
- [MongoDB](./ops/tools/mongodb.md)

9
src/ops/tools/curl.md Normal file
View File

@ -0,0 +1,9 @@
# Curl
## Add form-file in a POST request
```shell
curl -F "field-name=@/my/path" http://example.com
```
POST is implicit because of `-F`.