Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.122 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.76; '*S*': 0.00; 'subject:Question': 0.07; 'python': 0.09; 'subject:script': 0.09; 'collects': 0.16; 'hits': 0.16; 'skip:m 80': 0.16; 'subject:mod_python': 0.16; 'url:mi': 0.16; 'url:py': 0.16; 'whatsoever': 0.16; 'string': 0.17; 'everyone,': 0.17; 'thanks,': 0.18; 'admin': 0.18; 'skip:s 70': 0.22; 'programming': 0.23; 'posts': 0.23; 'idea': 0.24; 'linux': 0.24; 'script': 0.24; 'wrote': 0.26; 'skip:# 10': 0.27; 'appreciated': 0.27; 'skip:e 30': 0.27; "doesn't": 0.28; 'skip:/ 40': 0.29; 'skip:& 10': 0.29; 'this.': 0.29; "i'm": 0.29; 'query': 0.30; 'point': 0.31; 'web,': 0.33; 'subject:regarding': 0.33; 'problem': 0.33; 'anyone': 0.33; 'to:addr:python-list': 0.33; 'collecting': 0.35; 'direction': 0.35; 'solving': 0.35; 'bad': 0.37; 'does': 0.37; 'data': 0.37; 'skip:o 20': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'little': 0.39; 'help': 0.40; 'skip:a 30': 0.60; 'address': 0.60; 'john': 0.60; 'skip:u 10': 0.60; 'received:65.55.90': 0.62; 'received:snt0.hotmail.com': 0.62; 'solve': 0.62; 'mentioned': 0.63; 'url:email': 0.63; 'making': 0.64; 'our': 0.65; 'boss': 0.65; 'url:%1': 0.68; 'social': 0.69; 'lack': 0.71; 'basically,': 0.84; 'etc..': 0.84; 'submit,': 0.84; 'tasked': 0.84; 'url:phone': 0.84; 'url:program': 0.84; 'url:step': 0.84 X-EIP: [FBrJIreq0yur0GRIJKiPukEHnTWYq4uv] X-Originating-Email: [johnpen1@hotmail.com] Content-Type: multipart/alternative; boundary="_7d04360a-db5a-4540-8e47-eefd43603ef1_" From: John Pennington To: Subject: Question regarding mod_python and a script for web. Date: Thu, 20 Dec 2012 17:10:06 -0800 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 21 Dec 2012 01:10:06.0538 (UTC) FILETIME=[E9EB82A0:01CDDF17] X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 91 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356052276 news.xs4all.nl 6933 [2001:888:2000:d::a6]:59893 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35250 --_7d04360a-db5a-4540-8e47-eefd43603ef1_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Everyone=2C I'm a linux admin that was tasked by his python programming boss to solve a= problem my boss is having with a web form he wrote on our site. Unfortunat= ely for me=2C I lack any experience whatsoever with python and very little = with programming on the web=2C so my hope is someone can point me in the ri= ght direction for solving this. Basically=2C the problem is this. we have a webform that collects data suc= h as=2C NAME=2C SSN=2C EMAIL Address etc.. when the user hits submit=2C=20 the uri posts to the query string like the folllowing: =20 https://test.uchast.com/admit/supp.py?fname=3Djohn&lname=3Dfenn&mi=3Dted&ss= n=3D123456789&ssn_confirm=3D123456789&phone=3D412-658-3178&email=3Djojo%40u= c.com&alt_email=3Djojo12%40yahoo.com&lsacid=3D&grad_date=3DMay-2013&program= =3DJD&step=3D2 Which is bad as we are are going to be collecting data like Social Security= numbers.=20 We are using mod_python=20 WSGIScriptAlias /myapp /var/www/html/admit/index.pyRewriteEngine OnRewriteR= ule ^/admit https://test.uchast.com/admitOrd= er deny=2CallowAllow from allSSLRequireSSLDirectoryIndex index.py AddHandler mod_python .pyPythonHandler mod_python.cgihandler ###PythonHandler mod_python.publisher PythonDebug On Does anyone have an idea how to make sure a python script doesn't put the d= ata in the query string? Am I even making sense? Any all help would be grea= tly appreciated because as I mentioned I'm as new as it gets. Thanks=2C John = --_7d04360a-db5a-4540-8e47-eefd43603ef1_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi Everyone=2C

I'm a linux admin that was tasked by his = python programming boss to solve a problem my boss is having with a web for= m he wrote on our site. =3BUnfortunately =3Bfor me=2C I lack any&nb= sp=3Bexperience =3Bwhatsoever with python and very little with programm= ing on the web=2C so my hope is someone can point me in the right direction= for solving this.

Basically=2C the problem is thi= s. we have a webform that collects data  =3Bsuch as=2C NAME=2C SSN=2C E= MAIL Address etc.. when the user hits submit=2C =3B

the  =3Buri posts to the query strin= g like the folllowing: =3B
 =3B
https://test.uchas= t.com/admit/supp.py?fname=3Djohn&=3Blname=3Dfenn&=3Bmi=3Dted&=3Bss= n=3D123456789&=3Bssn_confirm=3D123456789&=3Bphone=3D412-658-3178&= =3Bemail=3Djojo%40uc.com&=3Balt_email=3Djojo12%40yahoo.com&=3Blsacid= =3D&=3Bgrad_date=3DMay-2013&=3Bprogram=3DJD&=3Bstep=3D2
=
Which is bad as we are are going to be collecting data like = Social Security numbers. =3B

We are using mod_= python =3B

WSGIScriptAlias /myapp /var/ww= w/html/admit/index.py
RewriteEngine On
RewriteRule ^/ad= mit https://test.uchast.com/admit
<=3BDirectory /var/www/html/a= dmit>=3B
Order deny=2Callow
Allow from all
= SSLRequireSSL
DirectoryIndex index.py

Ad= dHandler mod_python .py
PythonHandler mod_python.cgihandler
=

###PythonHandler mod_python.publisher

PythonDebug On
<=3B/Directory>=3B
Does anyone have an idea how to make sure a python script doesn= 't put the data in the query string? Am I even making sense? Any all help w= ould be greatly appreciated because as I mentioned I'm as new as it gets.

Thanks=2C

John
=
= --_7d04360a-db5a-4540-8e47-eefd43603ef1_--