Add curl form-file
This commit is contained in:
parent
6ebc135320
commit
03f0ad847e
2 changed files with 10 additions and 0 deletions
|
@ -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
9
src/ops/tools/curl.md
Normal 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`.
|
Loading…
Reference in a new issue