protect psycopg script from sql injection?

celati Laurent laurent.celati at gmail.com
Wed Jun 25 17:58:26 EDT 2014


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?

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140625/abc2c4a1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: web_service_test.py
Type: application/octet-stream
Size: 2114 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20140625/abc2c4a1/attachment.obj>


More information about the Python-list mailing list