curl-and-python

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

From: Dima Tisnek <dimaqq_at_gmail.com>
Date: Tue, 9 Sep 2014 09:38:37 +0200

Please contribute sample code, current test case is way too terse!

On 8 September 2014 23:05, Tonhão - Antonio Brasolin
<tonhoanhon_at_gmail.com> wrote:
> 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
>

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