Start Python at client side from web app

Rob Williscroft rtw at freenet.co.uk
Thu Jan 22 16:37:44 EST 2009


Thomas Guettler wrote in news:6tr453Fca5h6U1 at mid.individual.net in
comp.lang.python: 

> Diez B. Roggisch schrieb:
>> 
>>> 2) create a localhost web server, for the client side manipulation.
>>> Then have your remote webserver render a form that posts via
>>> javavscript to the localhost webserver.  The localhost server would
>>> post back in
>>> the same way.
>> 
>> AFAIK the JS security model prevents that.
> 
> A page requested from "http://myintranetserver/" can redirect to
> "http://localhost:myport/myapp/?foo=..." 
> 
> this would work.
> 
> But how should the web server at localhost be started? You need to
> write a Windows service.

Since there will be only one client a regular programme 
should be fine.

>           I guess that's not very easy, since I am not
> used to windows programming. 

Then don't do any (windows programming), do Python:

http://docs.python.org/3.0/library/wsgiref.html#module-
wsgiref.simple_server

http://docs.python.org/3.0/library/cgi.html#functions

Rob.
-- 
http://www.victim-prime.dsl.pipex.com/



More information about the Python-list mailing list