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
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
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
front.
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
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.htmlReceived on 2021-03-24