Is it possible to get the file length of a file on the web that you are downloading with TCP Open ??
Announcement
Collapse
No announcement yet.
File Length of web file
Collapse
X
-
I don't know you can do it with the intrinsic TCP functions, but I can't think of any reason you could not do an InternetOpenUrl and query the file size independent of those functions.
(Hell, it's a thought)Michael Mattias
Tal Systems (retired)
Port Washington WI USA
[email protected]
http://www.talsystems.com
-
Originally posted by Jim Seekamp View PostIs it possible to get the file length of a file on the web that you are downloading with TCP Open ??
Code:HTTP/1.1 200 OK Connection: keep-alive Date: Sat, 19 Apr 2008 16:17:45 GMT Server: Microsoft-IIS/6.0 [b]Content-Length: 62746[/b] Content-Type: text/html Set-Cookie: ASPSESSIONIDAAAABRCB=PJKJNHJAPIPKGMPLHFJLOMPL; path=/ Cache-control: private <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <title>PowerBASIC: Basic Compilers</title> <meta name="keywords" content="power basic compiler, powerbasic downloads, BASIC programming, pbdll, turbo basic, qbasic compiler, visual basic, vb"> <meta name="description" content="Welcome to PowerBASIC! Shop online for PowerBASIC compilers, BASIC compilers and programming tools for Windows and DOS. Extensive tech support and peer support forums available."> <meta http-equiv="pics-label" content="(pics-1.1 "http://www.icra.org/ratingsv02.html" l gen true for "http://www.powerbasic.com" r (cz 1 lb 1 lc 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.powerbasic.com" r (n 0 s 0 v 0 l 2))"> <link rel="stylesheet" href="pb.css">
--pdf
Comment
Comment