curl-and-python
Get propfind XML in memory
From: Deon Bredenhann <deon_at_outprosys.com>
Date: Wed, 12 Nov 2008 11:26:17 +0200
Date: Wed, 12 Nov 2008 11:26:17 +0200
Hi all
I just started out playing a bit with pycurl and webdav, now I seem to
be stuck on a small little issue.
f = StringIO.StringIO()
curl.setopt(curl.WRITEDATA, f)
(pycurl.CUSTOMREQUEST, "PROPFIND")
The setopt returns an error:
TypeError: invalid arguments to setopt
So it looks like a file on disk and the file handle provided by StringIO
is not the same.
Is there any way I can get the XML without writing it to disk first and
the loading it again.
Thanx a mil
Deon
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2008-11-12