Re: Execute a python script with CGI ?

2014-06-27 Thread dandrigo
Dear all, 1/ On my windows 8, i installed apache 2.2, python 2.7. I coded a python script. I would like to execute this python script in CGI.I would like enable GET pattern only (no POST pattern). Up to now : *i edited these following lines of my apache httpd.conf:

Execute a python script with CGI ?

2014-06-26 Thread dandrigo
Dear all, I coded a python script (web service with query postgresql/postgis). Up to now, i did several test on my local laptop station (windows). Now i want to execute this python script on our remote server (Web server : Apache;OS : Linux). How to write a CGI template please? Could you

protect psycopg script from sql injection?

2014-06-25 Thread dandrigo
Hello, I coded this following python script via psycopg; web_service_test.py http://python.6.x6.nabble.com/file/n5062113/web_service_test.py 1/ When i execute it, the result is 'bad resquest'. Could you tell me why? 2/ Could you tell me how to protect this script from SQL injections please?

Psycopg2 : error message.

2014-05-16 Thread dandrigo
the 2 usefull files below : Dandrigo pg_test.py http://python.6.x6.nabble.com/file/n5057062/pg_test.py SS_dos.JPG http://python.6.x6.nabble.com/file/n5057062/SS_dos.JPG In advance, thank you to throw light for me. Regards. -- View this message in context: http://python.6.x6