What version of python are you running? Your code works for me with python 2.0. (Although since testHandler doesn't serve anything the client gives the error "Connection reset by peer.") Alex.