I have a Python script which accepts a XML file as input and then processes it and creates another file.
Now the way I have to run this program in terminal (mac) is:
ttx myfile.xml
And it does the job.
Now I am trying to install this program on a web server.
I have all the necessary files installed as Modules under my Python installation.
My problem is, How can I pass a file to this Python script on a web server?
Should I be using File Upload method? or urllib2? or something else?
Thanks a lot
Passing the data would be easiest with HTTP POST. As to integrating Python script w/ Apache, the way I know would be to create a simple Django app to wrap the main Python function in your script, but I believe there must be some more direct way.