Skip to content

Commit

Permalink
docs: Allow Content header for writing a file
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT2 committed Jul 7, 2024
1 parent eb0c3fe commit dcd7cb9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ curl -X POST -H "Auth: $TOKEN" localhost:6060 -F "dir=my_folder"
curl -X POST -H "Auth: $TOKEN" localhost:6060/myfile.txt -F "content=I created this file with http!"
```

#### Write to a file with a header

```bash
# Note that this will overwrite an existing file
curl -X POST -H "Auth: $TOKEN" localhost:6060/myfile.txt -H "Content: I created this file with http!"
```

#### Append to a file

```bash
Expand Down

0 comments on commit dcd7cb9

Please sign in to comment.