curl-and-python

Re: Is there a way to use form_stream in pycurl?

From: Oleg Pudeyev <oleg+pycurl_at_bsdpower.com>
Date: Fri, 5 Sep 2014 23:34:03 -0400

On Fri, 5 Sep 2014 14:04:21 -0300
Tonhão - Antonio Brasolin <tonhoanhon_at_gmail.com> wrote:

> So my doubt is: is there an alternative to pycurl.FORM_FILE that takes
> either a string to be sent or a stream object (like a file object)?

pycurl.FORM_BUFFERPTR sounds like what you are looking for.

https://github.com/pycurl/pycurl/blob/master/tests/post_test.py#L102

Oleg

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2014-09-06