Saturday, January 13, 2018

Simple Python HTTP Server

There are times when you'll need a simple way to transfer a file. The Python one liner below will start a web server from any directory by invoking the command below:

Python V2:
python -m SimpleHTTPServer 8080

Python V3:
python3 -m http.server 8080

No comments:

Post a Comment