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> LD> ----- Original Message ----- LD> From: "Belyaev Dmitry" <[EMAIL PROTECTED]> LD> To: <pythonce@python.org> LD> Sent: Tuesday, August 01, 2006 2:40 AM LD> Subject: [PythonCE] SimpleHTTPServer LD> LD> 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> 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> LD> Luke LD> LD> > ------------------------------ LD> > It works on Desktop, but failes on PDA with the following error: LD> > ------------------------------ LD> > Exception happened during processing of request from ('127.0.0.1', 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 _______________________________________________ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce