Have python and want to share files via a browser

home | blog | Teh Internet | guest blog |rants | placeholder | political | projects | Gwen and Liam | Citadel patched | Tools | Scouts


- Careful Chrome users, this search box might be "Not secure"



nice write up Nikesh Jauhari!
http://linuxpoison.blogspot.com/2010/03/sharing-directory-content-over-http_03.html


copy of what was done (in case linuxpoison blog goes away)
simple 1 line current dir file server!
python -m SimpleHTTPServer 8080
Or cgi with this:
python -m CGIHTTPServer
and browse to : http://localhost:8080/myscript.py
Works with non-python cgi as well!
Sweet python webserver.



For Python 3 - find info here:
python3 -m http.server --help



[æ]