# Simple HTTP server with Python

- Link: https://cagrimmett.com/2016/05/03/simple-http-server/
- Published: 2016-05-03T04:00:00-04:00
- Author: Chuck Grimmett

### 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.

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

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

`Control + c` stops it.