Christopher Sean Hilton
chris at vindaloo.com
Wed Jul 16 14:58:49 EST 2003
-----BEGIN PGP SIGNED MESSAGE----- I'm trying to generate an xml transaction handler using apache, modpython, python and sax. I would like to be able to post a file to this website/handler with something like curl and have modpython process the file. Something like $ cat MyXmlFile.xml | \ > curl https://www.example.com/iface.py/XmlHandler My python looks like this: $ cat /var/www/data/www.example.com/iface.py #! /usr/local/bin/python2.1 from mod_python import apache def XmlHandler(req): XmlData = req.readlines() ... This does not get the contens of the file that I posted, in fact it's empty. Is there any way short of using traditional CGI of getting this file? Thanks in advance and if I'm missing something in the manual please feel free to give me a poke that sets me in the right direction. Chris - -- Chris Hilton chilton-at-vindaloo-dot-com - ------------------------------------------------------------------------ "All I was doing was trying to get home from work!" -- Rosa Parks -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iQEVAwUBPxWgWILaxorQlXotAQE23Qf9Ec2xBSXHtX6JN9QSwocetyTrDqBecpto 5lkvq6YlwGF4M5Ei5eUBFjOmAo3OydM83zKMzdzJTgrlOOr6p/JmAxV0YH3qm7QI +ON/vfoNDxVsPCeQPU/B1dEwkRdjtT2dMda68Ce8dG6go/1McKwUGxIm7/J4Qifs Bt02IeGLhu+03VIfm03dROn95P3LxqiuTUXbHiQYky9k23ahQjZ8O3XXb+3fyYa4 E44ZG0O9T/H5Xig1rTrbAASao86HNolgnbKR2zNbivtOblgl/p1KSWofkqfRaLRz JcT0jlSrQB1RvG2rZUz2qy1EPunZ2YUgS1gR+MmTJBmGTxYnIRCzJw== =tbTY -----END PGP SIGNATURE-----
|