Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An extended version of python's SimpleHTTPServer that supports https, authentication, rate limiting, and download resuming.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 README.md
Octocat-spinner-32 ext_http_server.py
Octocat-spinner-32 lint.sh
Octocat-spinner-32 setup.py
README.md

Installation

pip install ext_http_server

Generate a certificate

Run the following to generate cert.pem:

openssl req -new -x509 -days 365 -nodes -out cert.pem -keyout cert.pem

Running ext_http_server

If you have files you want to serve in /tmp/path/to/files/ run the following to serve them up with a max outgoing throughput of 16KBps:

ext_http_server --cert cert.pem -d /tmp/path/to/files -r16 -a foo:bar

By default, you will be able to access the webserver at https://localhost:8000. To authenticate, use the username foo and the password bar as indicated by the -a foo:bar argument. Note that multiple -a arguments can be added to add more than one user.

Something went wrong with that request. Please try again.