[PythonCE] SimpleHTTPServer
Belyaev Dmitry
rumata-estor at nm.ru
Wed Aug 2 21:17:46 CEST 2006
Opera for Pocket PC didn't work. I suppose it tries to check whether PDA has connection to the Internet.
But I found Minimo - Mozilla for Windows Mobile at http://www.mozilla.org/projects/minimo/
It did work as expected and web server worked fine.
BD> Hello, Luke Dunstan
BD>
BD> I'm using
BD> Python 2.4.3 (#0, Apr 29 2006, 20:58:35)[MSC v.1201 32bit (Unknown)] on Pocket PC
BD> on iPAQ hx2110, Windows Mobile 2003 Second Edition, Version 4.21.1088 (Build 14132)
BD>
BD> 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.
BD>
BD> I'm going to try Opera for PocketPC, maybe it will help.
BD>
BD> Wed, 02.08.2006 17:03:18 you wrote:
BD>
LD>>
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>>
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?
BD>
BD> Belyaev Dmitry
BD> _______________________________________________
BD> PythonCE mailing list
BD> PythonCE at python.org
BD> http://mail.python.org/mailman/listinfo/pythonce
BD> __________
BD> http://www.newhost.ru - Уютный дом для Вашего сайта!
Belyaev Dmitry
__________
www.newmail.ru -- Новая Почта для нового поколения.
More information about the PythonCE
mailing list