Hi guys, today i am going to show you hove add some extra features to our simple HTTP-Sever created using python socket module. So if you have no idea what is it please refer my previous blog post.
Previous post I describe you how send string as response. Here i will explain how send file. Yeh ! .html , .css , .jpg , .png and .js files can send. Again i want to say if you have no idea about this please first read this post.
First we should identify which file is client request. Then we can check whether its available in our container or not. If file exist we can send it and if not we should send error message saying file not exist.
Continue reading “How create HTTP-Server using python Socket – Part II”
Hi guys today I am going to give very brief introduction about how create web server using python socket. There are several ways to do that. But here i will explain how cover basic functionalities of server using python socket.
The SimpleHTTPServer module has been merged into http.server in Python 3.
- First identify what is a server ?
A server is a computer program that provides services to other computer programs (and their users) in the same or other computers. ( The computer that a server program runs in is also frequently referred to as a server. )
If you want to know more about that use this links. : What is server , How server works
Now I think you have understood about how server do its job and why we need server. Then start developments.First,
Continue reading “How create HTTP-Server using python Socket – Part I”