curl-library
Re: PyCurl SSL on Win32/HTTPGET boolean values in Python
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 23 Jan 2003 16:40:51 +0100 (CET)
Date: Thu, 23 Jan 2003 16:40:51 +0100 (CET)
On Thu, 23 Jan 2003, Ray S wrote:
> In fact I had an additional line over and above your code below, which read
> 'c.setopt(pycurl.HTTPPOST, 0)', which was a mistaken attempt to "switch
> off" the POST setting. That line was generating the error because
> apparently pycurl.HTTPPOST cannot be set to be an integer.
In libcurl you never actually DISABLE one kind of request, but you set the
new prefered type. Thus, if you've first set it to do POST, to make a
subseqent request do GET, you must explicitly tell it to do that.
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.comReceived on 2003-01-23