Remote file size unknown about sampling time

When I ran the fetch command, the following messages were displayed.

"the size of the deleted file is unknown

Will this be a mistake? Will it be something that disappears if I assign an option? Or will it be okay even if I don't mind?

+1


a source to share


3 answers


This is the Freebsd fetch command , right?



This is not a bug, just a warning. I don't think there is a way to suppress this warning.

0


a source


This is because the HTTP server does not send the Content-Length header with the response. Thus, the client does not know in advance how long the file is, and must assume that it ends when the connection is closed by the server, with the side effect that if the connection drops prematurely, you end up with an incomplete download without knowing it.



This is not good, but it is actually a common practice on the web, especially for dynamic content generated by scripts.

0


a source


Here on UNIX // Google image file size echo "Weberdev Logo Size:". getRemoteFileSize ' http://www.weberdev.com/images/BlueLogo150x45.gif ');

-1


a source







All Articles