Joe Landau
jrl at versaform.com
Tue Jun 17 14:40:47 EDT 2008
Clodaldo, Thanks. That was indeed the problem. Joe On 13 Jun 2008 at 15:02, Clodoaldo wrote: Date sent: Fri, 13 Jun 2008 15:02:24 -0300 From: Clodoaldo <clodoaldo.pinto at gmail.com> To: "Joe Landau" <jrl at versaform.com> Subject: Re: [mod_python] long argument string is being truncated Copies to: "Graham Dumpleton" <graham.dumpleton at gmail.com>, mod_python at modpython.org > 2008/6/13 Joe Landau <jrl at versaform.com>: > > Graham, > > > > Unfortunately I am using a program (in PowerBuilder) to create this data, not a form. But I > > assume from your reply that there is no way to get the full string from the URL, so I will have > > to generate a POST. > > > > Could you point me toward a mod_python example of processing a POST? > > While Graham does not come with a better answer you could try to > process it in the exact same way you process a GET. Although a > parameter that long is better sent in a POST you could also try to > urlencode the parameter in order to get rid of anything that could be > interpreted as not data such as the semicolon which has a special > meaning for mod_python and must be changed from ";" to "%3b" > > Regards, Clodoaldo Pinto Neto > > > > Thanks, > > > > Joe Landau > > > > On 13 Jun 2008 at 12:07, Graham Dumpleton wrote: > > > > Date sent: Fri, 13 Jun 2008 12:07:47 +1000 > > From: "Graham Dumpleton" <graham.dumpleton at gmail.com> > > To: "Joe Landau" <jrl at versaform.com> > > Subject: Re: [mod_python] long argument string is being truncated > > Copies to: mod_python at modpython.org > > > >> Use method="POST", not method="GET" in your HTML input form. Arguments > >> then go as body of post and not in URL. > >> > >> 2008/6/13 Joe Landau <jrl at versaform.com>: > >> > In my first python/mod_python/apache effort, I've been successful at > >> > retrieving short arguments using FieldStorage. However, when I try a longer > >> > argument, a little over 1000 bytes, It seems to be truncated at 600-some > >> > bytes. When I write req.args to my log, I see the truncated string. But > >> > the apache log access.log shows the entire string, so it is getting that far > >> > at least. Can anyone help? > >> > Joe Landau > >> > Joe Landau jrl at versaform.com > >> > VersaForm Systems Corp. (408) 370 2662 > >> > 591 W. Hamilton Ave., # 230 Campbell, CA 95008 > >> > Excellence in Medical Software http://www.versaform.com > >> > _______________________________________________ > >> > Mod_python mailing list > >> > Mod_python at modpython.org > >> > http://mailman.modpython.org/mailman/listinfo/mod_python > >> > > >> > > > > > > > Joe Landau jrl at versaform.com > > VersaForm Systems Corp. (408) 370 2662 > > 591 W. Hamilton Ave., # 230 Campbell, CA 95008 > > Excellence in Medical Software http://www.versaform.com > > > > _______________________________________________ > > Mod_python mailing list > > Mod_python at modpython.org > > http://mailman.modpython.org/mailman/listinfo/mod_python > > Joe Landau jrl at versaform.com VersaForm Systems Corp. (408) 370 2662 591 W. Hamilton Ave., # 230 Campbell, CA 95008 Excellence in Medical Software http://www.versaform.com
|