Update of /cvsroot/pythoncard/PythonCard/samples/webserver
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13183/samples/webserver
Modified Files:
readme.txt
Log Message:
updated port, Mac and Linux info for running CGIs
Index: readme.txt
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/samples/webserver/readme.txt,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** readme.txt 14 Jun 2002 05:53:08 -0000 1.4
--- readme.txt 9 Aug 2004 17:32:44 -0000 1.5
***************
*** 5,9 ****
After you've started the server you should be able to connect to it from
! your machine using the URL http://localhost/ or http://127.0.0.1/
You'll need to add additional IP addresses to the validIPList if you would
--- 5,9 ----
After you've started the server you should be able to connect to it from
! your machine using the URL http://localhost:8000/ or http://127.0.0.1:8000/
You'll need to add additional IP addresses to the validIPList if you would
***************
*** 17,21 ****
unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x) for CGIs
that process or output binary data to work correctly, but this may
! no longer be necessary with Python 2.2.1.
For comparison, I've also provided a console_server.py file which will run
--- 17,21 ----
unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x) for CGIs
that process or output binary data to work correctly, but this may
! no longer be necessary with Python 2.2.1 or later.
For comparison, I've also provided a console_server.py file which will run
***************
*** 29,40 ****
! Mac OS X Notes:
! The default port for the webserver script is port 80, so on Mac OS X, you must
! use sudo to start the server or change the script to use an unreserved port number
! above 1024 such as 8000.
!
! The CGI scripts don't seem to work on OS X and I don't know why, but it looks like
! a problem with the Python Standard Libraries CGIHTTPServer module and not
! wxPython or PythonCard.
--- 29,36 ----
! Mac OS X and Linux Notes:
! In order to run CGI scripts on Mac OS X or Linux you will first have to do
! a chmod +x on the CGI scripts. You may also have to change the #!/usr/bin/python
! at the top of each CGI script.
***************
*** 46,50 ****
the xmlrpclib module. Then try this in the shell:
! >>> server = xmlrpclib.Server('http://localhost/cgi-bin/webservices.py')
>>> server.system.listMethods()
{'sample.helloWorld()': 'None', 'examples.getStateName(stateIndex)': 'None', 'system.listMethods()': 'None'}
--- 42,46 ----
the xmlrpclib module. Then try this in the shell:
! >>> server = xmlrpclib.Server('http://localhost:8000/cgi-bin/webservices.py')
>>> server.system.listMethods()
{'sample.helloWorld()': 'None', 'examples.getStateName(stateIndex)': 'None', 'system.listMethods()': 'None'}
|