Re: newbie ?s
> > 1) I was wondering if anyone has opinions on the ability of CGIHTTPServer (a > > forking variant) to be able to handle this. > > Why not use apache? Wanted something with less footprint. -- http://mail.python.org/mailman/listinfo/python-list
newbie ?s
Hi folks, I'm looking build a CGI-capable SSL-enabled web-server around Python 2.4 on Linux. It is to handle ~25 hits possibly arriving "at once". Content is non-static and built by the execution of py cgi-scripts talking to a few backend processes. 1) I was wondering if anyone has opinions on the ability of CGIHTTPServer (a forking variant) to be able to handle this. 2) If so, would something like pyOpenSSL be useful to make such a webserver SSL-enabled. I checked out John Goerzen's book: Foundations of Python Network Programming (ISBN 1590593715) and searched around. While I found how one can write py scripts that could communicate with SSL-enabled webservers, tips on building SSL-enabled webservers isn't obvious. I was hoping to build a cleaner solution around the CGIHTTPServer variant instead of say something like mini-httpd/OpenSSL/Python. I'd appreciate any pointers. TIA, /venkat -- http://mail.python.org/mailman/listinfo/python-list
Re: BaseHTTPServer.BaseHTTPRequestHandler and HTTP chunking
> No. Hardly any HTTP 1.1 features are supported. Hi all, I'd like to know more about the limitations. Somewhere, is there a list of the actual subset of HTTP 1.1 features supported. There's not much related info at the python.org site. There appears to be just a limited note on 1.1 in http://www.python.org/doc/2.4/lib/module-BaseHTTPServer.html with regards to using the protocol_version variable/setting. No clue to extent of support. Thanks, /v -- http://mail.python.org/mailman/listinfo/python-list
Re: Web framework
> I'd say Nevow! For apache setup, you might be interested in my wsgi [1] > implementation. Hi Sridhar, Are you aware of Nevow's "integrability" with the webservers (CGIHTTPServer in particular) that come packaged with Python itself ? Thanks, /venkat -- http://mail.python.org/mailman/listinfo/python-list
Python & LEGO Mindstorm control...
Hi all, I have a question re the use of Python to control a robot built with the LEGO Mindstorm system. This is to help my 11yr old with his increased interest in 'programming' and 'robotics'... If not feasible, he wants to use the graphical-tool that comes with it... Would you suggest: 1. Using LegOS (http://legos.sourceforge.net/) and writing/using py extensions from a Linux-box, OR 2. Using LeJOS (http://lejos.sourceforge.net/) and writing Jython utils. Wanted to incorporate Python somehow, as it may be quite appropriate for his age. Will have to help quite a bit in either case, tho... but was wondering which is a more treaded path... TIA, /venkat -- http://mail.python.org/mailman/listinfo/python-list
Python 2.4.1 build (configure) ?
Hi all, While building the latest 2.4.1 version for Linux/RH9, I wanted to enable IPV6 support (sockets). So, I ran the configure command ./configure --enable-ipv6 Then I ran the 'make' and 'make altinstall' commands. When I checked the .py sources (in Lib folder) thru grep for 'ipv6', I see the same references I'd see, if I ran the configure command without the --enable-ipv6 option. Is that normal or is there an issue I need to address here. Thanks, /venkat -- http://mail.python.org/mailman/listinfo/python-list
mini_httpd (ACME Labs) & Python 2.4.1 integration
Hi folks,I have a webserver based on mini_httpd v1.19(http://www.acme.com/software/mini_httpd/).I'd like to run some python-based CGI scripts via this webserver on an RH9 system.In theory, with the right env settings, Ishould be able to launch mini_httpd like so: mini_httpd -c *.pyand be able to run scripts like so: http://fqdn/simple.pyUsing info from (python) sys.path, multiple get_config_var(..)s and sys.executable, Iwas able to build and use the env settings (CGI_PATH, CGI_LD_LIBRARY_PATH) in the mini_httpd sources.However, when I tried accessing the simple.pyscript as in the url above, I get an error(errno of 8 - Exec format error) when thecode attempts to invoke the execve() function. This same script works ok from a CGIHTTPServer.py based test webserver.I was wondering if you knew what the right env settings should be to get the py script working... I tried to google around to no avail. Thanks a lot. Regards, /venkat -- http://mail.python.org/mailman/listinfo/python-list
Re: mini_httpd (ACME Labs) & Python 2.4.1 integration
We found the answer, just in case one was looking for it... I turns out that setting the environment params (CGI_PATH & CGI_LD_LIB_PATH) is not sufficient. One has to still add the path entry to the script itself... like so: #! /python2.4 May also work with ensuring env variable PYTHONPATH is set right. /venkat -- http://mail.python.org/mailman/listinfo/python-list