加载中...

Python

  1. Home
  2. Computing & Technology
  3. Python

Building a Simple Web Server in Python

By Al Lukaszewski, About.com

1 of 10

Introduction to socket

As a complement to the network client tutorial, this tutorial shows how to implement a simple web server in Python. To be sure, this is no substitute for Apache or Zope. There are also more robust ways to implement web services in Python, using modules like BaseHTTPServer. This server uses the socket module exclusively.

You will recall that the socket module is the backbone of most Python web service modules. As with the simple network client, building a server with it illustrates the basics of web services in Python transparently. BaseHTTPServer itself imports the socket module to affect a server.

1 of 10

Explore Python

More from About.com

Python

  1. Home
  2. Computing & Technology
  3. Python
  4. Networking
  5. Python Web Server: Building a Simple Web Server in Python

©2009 About.com, a part of The New York Times Company.

All rights reserved.