Skip to content

Latest commit

 

History

History
67 lines (52 loc) · 1.72 KB

README.md

File metadata and controls

67 lines (52 loc) · 1.72 KB

❄️ coolhttpd 📁

Simple HTTP file browser
A HTTP server with basic authentication, Directory tree view and much more.

demo

coolhttpd is my attempt to solve a part of my workflow

Everytime I need to copy X thing from one computer to another, I need to do either of these python -m http.server -p 8080 or cat file > nc -l 8080

🎨 Features

  • Simple HTTP File server
  • Supports basic authentication
  • Directory tree view showing every file/folder

And more, see ToDo

🔨 Usage

  • Want to serve current working directoy straight away?
$ coolhttpd
  • Serve from a specific host addr and port
 $ coolhttpd --host <IP-ADDRESS> --port <PORT>
  • Enable Authentication? coolhttpd support basic authentication scheme defined in RFC 2617
$ coolhttpd --username <USERNAME> --passwd <PASSWD>
  • Serve a specific directory?
$ coolhttpd --dir <DIRECTORY TO SERVE>

💾 Install

  • Install from source, requires golang toolchain installed on your system.
# download the source using go get
$ go get -v github.com/Boot-Error/coolhttpd

# compile the source
$ go install github.com/Boot-Error/coolhttpd

# the compiled binary can be found in $GOPATH/bin, refer Usage
$ $GOPATH/bin/coolhttpd <ARGS>

📋 To-Do

  • Download whole directory as a zip archive
  • Fuzzy Search the serving directory
  • Support for wget's recursive download (still contemplating..)