[PythonCE] SimpleHTTPServer

Luke Dunstan coder_infidel at hotmail.com
Thu Aug 3 02:10:03 CEST 2006


Does it make a difference if you use http://127.0.0.1/ ? localhost has never 
worked for me on Windows CE, regardless of whether the server is implemented 
in Python or C++.

Luke

----- Original Message ----- 
From: "Belyaev Dmitry" <rumata-estor at nm.ru>
To: <coder_infidel at hotmail.com>; <pythonce at python.org>
Sent: Thursday, August 03, 2006 1:57 AM
Subject: Re[2]: [PythonCE] SimpleHTTPServer


> 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" <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?
>
> Belyaev Dmitry
> 



More information about the PythonCE mailing list