cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: http post & progress function

From: Traxler Bence <tbence_at_inf.bme.hu>
Date: 26 Sep 2002 17:21:05 +0200

2002-09-26, cs keltezéssel Daniel Stenberg ezt írta:
> On 26 Sep 2002, Traxler Bence wrote:
>
> > I'm wondering wether I can use CURLOPT_PROGRESSFUNCTION for a http post
> > 'upload'. I need to send files to the server with some inforation which I
> > could easily do with a post not with put. I tried to use a progress
> > callback but the upload values were zero all the time. Is there any chance
> > to get it work?
>
> Does your progress callback prototype match this:
>
> typedef int (*curl_progress_callback)(void *clientp,
> double dltotal,
> double dlnow,
> double ultotal,
> double ulnow);

Exactly. The strange thing is that dltotal and dlnow variables shows the
right values, the size of the server answer but the other two is 0.

Bence

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-09-26