From dcd7cb9e333a99b013ecd0292615231121cbb536 Mon Sep 17 00:00:00 2001 From: 5HT2 Date: Sat, 6 Jul 2024 20:08:12 -0400 Subject: [PATCH] docs: Allow `Content` header for writing a file --- USAGE.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/USAGE.md b/USAGE.md index 823387a..308e91c 100644 --- a/USAGE.md +++ b/USAGE.md @@ -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