[PythonCE] SimpleHTTPServer

Belyaev Dmitry rumata-estor at nm.ru
Wed Aug 2 19:57:42 CEST 2006

Hello, Luke Dunstan

I'm using
Python 2.4.3 (#0, Apr 29 2006, 20:58:35)[MSC v.1201 32bit (Unknown)] on Pocket PC
on iPAQ hx2110, Windows Mobile 2003 Second Edition, Version 4.21.1088 (Build 14132)

When I type "http://localhost/" and tap "Go" request come Python, but a bit later Connectivity window popup, and it says that PDA is not connected to Internet.

I'm going to try Opera for PocketPC, maybe it will help.

Wed, 02.08.2006 17:03:18 you wrote:

LD> ----- Original Message ----- 
LD> From: "Belyaev Dmitry" <rumata-estor at nm.ru>
LD> To: <pythonce at python.org>
LD> Sent: Tuesday, August 01, 2006 2:40 AM
LD> Subject: [PythonCE] SimpleHTTPServer
LD> >I tried to write simple http server on my PDA.
LD> > ------------------------------
LD> > import SimpleHTTPServer as Handler
LD> > import BaseHTTPServer as Server
LD> >
LD> > h = Handler.SimpleHTTPRequestHandler
LD> > s = Server.HTTPServer(('localhost', 80), h)
LD> > s.serve_forever()
LD> The above works fine for me on Pocket PC 2003 with PythonCE 2.4.3. Is your 
LD> OS or Python version different? I did use Pocket Internet Explorer.
LD> Luke
LD> > ------------------------------
LD> > It works on Desktop, but failes on PDA with the following error:
LD> > ------------------------------
LD> > Exception happened during processing of request from ('', 1026)
LD> > Traceback (most recent call last):
LD> >   File "binaries\lib\SocketServer.py", line 222, in handle_request
LD> >   File "binaries\lib\SocketServer.py", line 241, in process_request
LD> >   File "binaries\lib\SocketServer.py", line 254, in finish_request
LD> >   File "binaries\lib\SocketServer.py", line 521, in __init__
LD> >   File "binaries\lib\BaseHTTPServer.py", line 316, in handle
LD> >   File "binaries\lib\BaseHTTPServer.py", line 299, in handle_one_request
LD> >   File "binaries\lib\socket.py", line 340, in readline
LD> > error: (10054, 'Connection reset by peer')
LD> > ------------------------------
LD> > Is it error in Internet Explorer CE or in PythonCE?

Belyaev Dmitry

More information about the PythonCE mailing list