HTTP Post ?

Shagshag13 shagshag13 at yahoo.fr
Tue Jan 28 08:30:38 EST 2003


hello,

i'm trying to simulate a http post with python. i've found the following in another post and it seems to work:

import urllib
params = {'param1': 'data1', 'param2': 'data2'}
cparams = urllib.urlencode(params)
fh = urllib.urlopen('http://localhost/cgi-bin/test.py', cparams)

but i would like to understand how http post headers are built and how it's actually work, please do any of you have  pointers/links
to relevant information on the subjet ?

thanks in advance,

s13.






More information about the Python-list mailing list