On Wed, 24 Mar 2021, Tomas Berger via curl-library wrote:

I do something very similar to get file size on TFTP, simply put, I use my own progression call back, and abort that call back when I get a value in " dltotal", and use that as the file size.

I think it should work. Just note that the "total size" is sent with the "tsize" option (RFC 2349) which is an extension and therefore many not be sent by all TFTP servers. Without that info, libcurl won't know the total size up front.

--

 / daniel.haxx.se
 | Commercial curl support up to 24x7 is available!
 | Private help, bug fixes, support, ports, new features
 | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to