Hi guys,
I tested the HTTP-POST-Example from the reference-manual:
import httplib, urllib
params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0})
h = httplib.HTTP("www.musi-cal.com:80")
h.putrequest("POST", "/cgi-bin/query")
h.putheader("Content-length", "%d" % len(params))
h.putheader('Accept', 'text/plain')
h.putheader('Host', 'www.musi-cal.com')
h.endheaders()
h.send(paramstring)
reply, msg, hdrs = h.getreply()
print errcode # should be 200
data = h.getfile().read() # get the raw HTML
It worked fine, but POST-VARs where not transmitted.
Ethereal (a free network-tool) showed me the same
results, that the POST-VARs where not transmitted.
By the way, I used the Python-Distribution (Build-
Version 202) from ActiveState on the
Windows 2K-platform.
I hope somebody can help and fix this problem.
Markus
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython