加载中...
  1. Home
  2. Computing & Technology
  3. Python

Discuss in our forum

Building a Simple Web Server in Python

From , former About.com Guide

See More About:

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. Home
  2. Computing & Technology
  3. Python
  4. Networking
  5. Python Web Server: Building a Simple Web Server in Python

©2011 About.com. All rights reserved. 

A part of The New York Times Company.