simulated post to a python script
Andy Worthington
andy at rockcity.com
Wed May 24 12:30:42 EDT 2000
I am working on a php script that simulates a post to a python script for a
multipart/form-data form. I have looked at the format of the message that
both netscape and internet explorer send to the server and I notice no
difference from my simulated post except it doesn't work. Currently the
python script just does a cgi.test() and is showing no form fields. Here is
my request that is being sent to the server, any help would be appreciated.
Each line is terminated with a \r\n
Thanks
Andy Worthington
Referer: http://rockcity.com/rufcutt/lamodels/search.html
Connection: Keep-Alive
User-Agent: php-HTTP_POST/1.0
Pragma: no-cache
Host: www.rockcity.com
Accept: */*
Content-Type: multipart/form-data;
boundary=-----------------------------30e4e0404e5ee7493bfe64309281b8ab
Content-Length: 1541
-----------------------------30e4e0404e5ee7493bfe64309281b8ab
Content-Disposition: form-data; name="frmName"
andy
-----------------------------30e4e0404e5ee7493bfe64309281b8ab
Content-Disposition: form-data; name="frmBirthdate"
04281979
-----------------------------30e4e0404e5ee7493bfe64309281b8ab
Content-Disposition: form-data; name="frmHeightFT"
5
-----------------------------30e4e0404e5ee7493bfe64309281b8ab
Content-Disposition: form-data; name="frmHeightIN"
5
-----------------------------30e4e0404e5ee7493bfe64309281b8ab
Content-Disposition: form-data; name="frmWeight"
100
-----------------------------30e4e0404e5ee7493bfe64309281b8ab
Content-Disposition: form-data; name="frmAddress1"
1600 North
-----------------------------30e4e0404e5ee7493bfe64309281b8ab
Content-Disposition: form-data; name="frmAddress2"
#124
-----------------------------30e4e0404e5ee7493bfe64309281b8ab
Content-Disposition: form-data; name="frmCity"
Norman
-----------------------------30e4e0404e5ee7493bfe64309281b8ab
Content-Disposition: form-data; name="frmState"
OK
-----------------------------30e4e0404e5ee7493bfe64309281b8ab
Content-Disposition: form-data; name="frmZip"
73069
-----------------------------30e4e0404e5ee7493bfe64309281b8ab
Content-Disposition: form-data; name="frmPhone"
918-224-2748
-----------------------------30e4e0404e5ee7493bfe64309281b8ab
Content-Disposition: form-data; name="frmEmail"
andy at rockcity.com
-----------------------------30e4e0404e5ee7493bfe64309281b8ab--
More information about the Python-list
mailing list