cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-and-python mailing list Archives

Get propfind XML in memory

From: Deon Bredenhann <deon_at_outprosys.com>
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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET