J
jponiato
Greetings.
An HTML form submits it's data to a python cgi script on my server. This script accepts this POST data, and uses urllib.urlopen() to call a different cgi script (on an external server), passing this same data. I'm using cgi.FieldStorage() to create a mapping of the FORM data, then using urllib.urlencode() to turn it back into form data for urlopen().
Question - is there a more efficient way to do this?
I'm using an intermediary script because I want to be able to reformat the data returning from the external script before displaying it to the user.
TIA for your help.
--
Jp
"Don't let fear or good sense stop you."
-- Dennis Sollars
An HTML form submits it's data to a python cgi script on my server. This script accepts this POST data, and uses urllib.urlopen() to call a different cgi script (on an external server), passing this same data. I'm using cgi.FieldStorage() to create a mapping of the FORM data, then using urllib.urlencode() to turn it back into form data for urlopen().
Question - is there a more efficient way to do this?
I'm using an intermediary script because I want to be able to reformat the data returning from the external script before displaying it to the user.
TIA for your help.
--
Jp
"Don't let fear or good sense stop you."
-- Dennis Sollars