cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: implementing nginx upload_resume client

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 16 Nov 2011 23:51:48 +0100 (CET)

On Tue, 1 Nov 2011, Andrew Hammond wrote:

> I have tried the following
>
> c.setopt(c.READFUNCTION, lambda *args: post_attachment)
>
> where post_attachment is a string containing the chunk of the file I want to
> post (it is exactly the right size). However this times out (I don't
> understand how, since it the lambda function should return immediately).

Do you specify the correct size of the data?

You can use CURLOPT_DEBUGFUNCTION to figure out exactly what libcurl sends
over the wire. It often helps in getting a better idea of exactly what's going
on.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-16