aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2021-03-08 22:04:44 +0000
committerGitHub <noreply@github.com>2021-03-08 22:04:44 +0000
commitad298e486e933af046c38da3af118cf83968f6ae (patch)
treeac0fa05ca82715e66ab11e7e6015bbc84159cc24
parentUpdate CHANGELOG for recent change (diff)
parentDocument file uploading with curl (diff)
downloadminiserve-ad298e486e933af046c38da3af118cf83968f6ae.tar.gz
miniserve-ad298e486e933af046c38da3af118cf83968f6ae.zip
Merge pull request #460 from mhuesch/patch-1
Document file uploading with curl
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index 713d2b4..8bce096 100644
--- a/README.md
+++ b/README.md
@@ -49,6 +49,15 @@ Sometimes this is just a more practical and quick way than doing things properly
miniserve -i 192.168.0.1 -i 10.13.37.10 -i ::1 /tmp/myshare
+### Upload a file using `curl`:
+
+ # in one terminal
+ miniserve -u .
+ # in another terminal
+ curl -F "path=@$FILE" http://localhost:8080/upload\?path\=/
+
+(where `$FILE` is the path to the file. This uses miniserve's default port of 8080)
+
## Features
- Easy to use