flat assembler
Message board for the users of flat assembler.
Index
> Windows > http how to get file size |
Author |
|
inskipp 18 Oct 2004, 16:43
You can try the old trick from DOS:
Code: invoke InternetSetFilePointer,hFile,0,0,FILE_END,0 and the return value will be file size (or -1). Don't forget to set pointer back to FILE_BEGIN if you want to dowload file. I think you can also use the HttpQueryInfo function, but this will be harder. |
|||
18 Oct 2004, 16:43 |
|
gorshing 18 Oct 2004, 21:14
Or you could read the RFC and pull the size out of the HTTP Response.
Which I believe is .... http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13 _________________ gorshing |
|||
18 Oct 2004, 21:14 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.