SSL and POST with httplib or urllib
Paul Robinson
paul.robinson at quantisci.co.uk
Tue Jun 6 04:13:35 EDT 2000
Phil Mayes wrote:
>
> You're sending it like a GET. IIRC, the URL is /cgi-bin/ccredit.cgi
> and the data is "0=1". You'll also need a Content-Length header line
> with a value of 3:
> h.putheader('Content-length', '%d' % len(data))
> h.endheaders()
> h.send(data + '\r\n')
> (Maybe the \r\n is redundant.)
You'll also need a:
h.putheader('Content-Type','application/x-www-form-urlencoded')
[and the \r\n is redundant.]
Paul.
-----------------------------------
Business Collaborator Team
Enviros Software Solutions
http://www.businesscollaborator.com
-----------------------------------
More information about the Python-list
mailing list