curl-and-python

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

From: Tonhão - Antonio Brasolin <tonhoanhon_at_gmail.com>
Date: Mon, 8 Sep 2014 18:05:27 -0300

Oh, it worked fine! I had an old version of pycurl so I didn't have this
function.

Updated -> tried -> worked.

Thanks for the help! : )

On Sat, Sep 6, 2014 at 12:34 AM, Oleg Pudeyev <oleg+pycurl_at_bsdpower.com>
wrote:

> 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
>

-- 
El Psy Congroo,
Antonio Añon Brasolin,
Masters Degree Student in Universidade Federal de São Carlos

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