curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: TFTP get filesize/file exist

From: Daniel Stenberg via curl-library <>
Date: Wed, 24 Mar 2021 22:48:23 +0100 (CET)

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

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2021-03-24