Simple HTTP server with Python

May 3, 2016
Category: TIL
Tags: Python

Today I learned:

Simple HTTP server

Need to quickly test how something works/functions but don’t want to go through the hassle of putting it on a webserver? Python has you covered.

$ cd /home/some/dir
$ python -m SimpleHTTPServer

Then you can access the stuff in that directory it via http://localhost:8000/ in your browser!

Control + c stops it.

Find this post useful?

Buy me a coffeeBuy me a coffee