-
Notifications
You must be signed in to change notification settings - Fork 89
bros http
Gabe Marshall edited this page Sep 10, 2016
·
3 revisions
The Brosec HTTP(s) module functions much like Python's SimpleHTTPServer module. If you need a quick web server to serve content from the current working directory, you can simply run bros http from the command line.
This will start a web server on port 8000.
If you want to change the port, simply enter bros http <port>
A simple file uploader is available at /upload when the --upload option is passed.
Basic authentication is enabled when the --username=foo and --password=bar options are passed.
You can also initiate an HTTPS server by running bros https
If a certificate and key are not specified (via --key=/path/to/key and --cert=/path/to/cert) Brosec will prompt to create a self signed cert which will be stored in /var/tmp/ or %TEMP%

