SIMPLE PYTHON HTTP SERVER
In many use cases, we come across the situation where we need a simple server to test some command or test some applications. But creating a server programmatically is a time taking process. To solve the problem Python has created SimpleHTTPServer module. In this post, we will learn how to create a simple HTTP server in a single command on Ubuntu.
Above command will create a simple HTTP server for you at port 8001
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
In many use cases, we come across the situation where we need a simple server to test some command or test some applications. But creating a server programmatically is a time taking process. To solve the problem Python has created SimpleHTTPServer module. In this post, we will learn how to create a simple HTTP server in a single command on Ubuntu.
Create SimpleHTTPServe Using Commandline
python -m SimpleHTTPServer 8001
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
Comments
Post a Comment