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

postfields and unicode objects

From: Seth Vidal <skvidal_at_fedoraproject.org>
Date: Thu, 13 Aug 2009 10:55:40 -0400 (EDT)

Hi,
  using pycurl 7.19.0 and curl 7.19.4. I've found if I submit a unicode
object to the postfields option using setopt() that I get a type error

TypeError: invalid arguments to setopt

if I coerce the unicode object to a string using str(obj) then it works
but that coercion will sometimes fail due to unicode decode problems.

Now, my question: is there any reason this HAS to be a string object and
can't be a unicode object and if so should I file it as an issue with
pycurl?

Thanks,
-sv

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2009-08-13

These mail archives are generated by hypermail.

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

File upload with ASP.NET