Web servers are an invaluable part of the Internet. With Web 2.0, their import will only increase. Sometimes, though, Apache is over the top for a web service solution. Sometimes all you need is a little program to deliver data upon request. You can learn how to build a simple web server by following this tutorial
Such little programs can also be quite helpful in understanding the basics of client-server relations. For this reason, I implemented the server using only the socket module.