From a7458d16077dff12ca82f03c3d52d2f2de35c9f2 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sat, 7 Dec 2024 19:10:58 +0000 Subject: Added POST support and rejigged reading of request. --- README | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'README') diff --git a/README b/README index add015a..389fd23 100644 --- a/README +++ b/README @@ -3,7 +3,7 @@ httpserv httpserv is a small server to serve up a directory over HTTP. It's usage is: - httpserve [-p port] [-d dir] + httpserve [-p port] [-d dir] [-a] By default it listens on port 80 and serves the current directory. To use port 80 on UNIX/Linux you'll have to run as root to have access to such a low @@ -14,3 +14,7 @@ the directory and links to download each one. For security reasons sub directories aren't supported. The basname of the passed file is used so that it must exist in the directory being served. + +By specifying the -a flag it will allow uploads via a POST. This is a basic +implmentation where it ignores the content-type and just dumps the body of the +request to the passed file. It will not allow files to be overwritten. -- cgit v1.2.3