SSL w/ urllib
Andrew Kuchling
akuchlin at mems-exchange.org
Sun Apr 23 10:11:42 EDT 2000
More information about the Python-list mailing list
Sun Apr 23 10:11:42 EDT 2000
- Previous message (by thread): SSL w/ urllib
- Next message (by thread): Calling Python from C code with subs as strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jp Calderone <exarkun at flashmail.com> writes: > If I switch it over to a GET request, it works fine, but I > really need POST to work. Is this another bug or am I doing > something wrong? Oops! I wrote the patch too quickly and forgot one more piece; it never sends the body of the POST. <bullwinkle>This time for sure!</bullwinkle> --amk Index: urllib.py =================================================================== RCS file: /projects/cvsroot/python/dist/src/Lib/urllib.py,v retrieving revision 1.91 diff -C2 -r1.91 urllib.py *** urllib.py 2000/02/04 15:28:41 1.91 --- urllib.py 2000/04/23 14:09:44 *************** *** 328,331 **** --- 328,333 ---- for args in self.addheaders: apply(h.putheader, args) h.endheaders() + if data is not None: + h.send(data + '\r\n') errcode, errmsg, headers = h.getreply() fp = h.getfile()
- Previous message (by thread): SSL w/ urllib
- Next message (by thread): Calling Python from C code with subs as strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list