Cookies

Ken Seehof kens at sightreader.com
Wed Mar 21 11:45:17 EST 2001


Wow, that is absolutementally brilliantissimo!

Also, it might even work :-)

And it solves the problem of providing cheap UI capability to
the python executable via the browser!

Thanks,
- Ken Seehof

Timothy O'Malley <timo at alum.mit.edu>'s brain emits:
> Here's a wacky idea.
> 
> You could generate the id on the server or client side.  If the
> client generates it in JavaScript, then he sends it to the server.  If
> the server generates it, then he already has it.  In either case, the
> the server who responds with an web page that includes an HTTP link
> that points to the following URL
>  
>          http://localhost:8080/id=1234
> 
> On this page, you instruct the user to
>     1) start up your Python application
>     2) click on the link
> 
> The Python application should include a small (and stupid) HTTP sever
> that listens on port 8080 of the localhost.  When it detects a
> connection, it reads the ID out of the requested URL.  (In the above
> example, the ID is the string "1234".)
> 
> When the user clicks on the link, the client browser makes a request
> to the Python application running on his machine.  By this mechanism
> is the unique key passed to the application.  (To be nice, the Python
> application should respond with a nice web page.)






More information about the Python-list mailing list