Simple HTTP server with 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.



Comments

Leave a Reply

Webmentions

If you've written a response on your own site, you can enter that post's URL to reply with a Webmention.

The only requirement for your mention to be recognized is a link to this post in your post's content. You can update or delete your post and then re-submit the URL in the form to update or remove your response from this page.

Learn more about Webmentions.