Both the CURLOPT_PROGRESSFUNCTION and CURLOPT_HEADERFUNCTION execute after 
curl_easy_perform(CURL*) returns CURLE_OK, by then header file has been closed.

I noticed this with uploading a file to an ftp server.  The file upload is 
successful but both functions are executing even though 
curl_easy_perform(CURL*) ran.

Response output to file:
220 (vsFTPd 2.2.0)
331 Please specify the password.
230 Login successful.
257 "/"
229 Entering Extended Passive Mode (|||24241|).
200 Switching to Binary mode.
150 Ok to send data.
226 File receive OK.

Response message after curl_easy_perform(CURL*) returns and file handle closed:
221 Goodbye.


Tested with Libcurl 7.21.1 and 7.21.4 on Windows 7 with VS2010.

Michael Henshaw

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to