Results 1 to 6 of 6

Thread: How to get file's size

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    7

    How to get file's size

    Is there anyway to get a size of a file that is in internet?
    I mean to get the same effect as filelen does but from internet.

  2. #2
    rsitogp
    Guest
    That information comes in the "HTTP Header".

  3. #3
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Do all web servers send that header though?
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  4. #4
    rsitogp
    Guest
    Yes, but some send without certin info just depends on server config.

  5. #5
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Code:
        Request.TotalBytes

  6. #6
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    I've downloaded from some servers I'm pretty sure were running some version of Unix where IE did not know the file size until the download was complete.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width