Jump to content

InetGetSize


Excalibur
 Share

Recommended Posts

Didnt know if this was the correct place to stick this, but I figured it was the right group of people atlest. I was curious as to how the INetGetSize function worked, does it just use an HTTP protocol call to the server that asks for that files size? or does it request the file and actually download it? How does this work?

Ooo Ëxçã¿îbúr ooO"Information Is Not Knowledge." ~Albert Einstein
Link to comment
Share on other sites

  • Developers

If you use a network sniffer you can see any packets that wil sended / Recv.

Ethreal is some example.

Its now called wireshark. But here is the site: http://www.wireshark.org/

Edit : Oh btw, Its for almost any OS :)

Point being ?

Manually add all the packet size together, after stripping header/footer and retransmit packages, to find out what the file size is when transfered ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Point being ?

Manually add all the packet size together, after stripping header/footer and retransmit packages, to find out what the file size is when transfered ?

He is just saying that if realy wants to find out what how it's done on his own he can use network sniffer to check what is sent and how it's handled from the point of network. It's far from main question but i guess Larry already answered and it's just for him to google those up.

My little company: Evotec (PL version: Evotec)

Link to comment
Share on other sites

  • 2 weeks later...

All I wanted to know is if it downloads the whole file to get the size or just askes the server what the file size is, because if it just downloads the whole file anyways, I would just save the file regardless.

Ooo Ëxçã¿îbúr ooO"Information Is Not Knowledge." ~Albert Einstein
Link to comment
Share on other sites

The file size is returned by the server on the http header.

Content-Length : 23423

______________^

This is in bytes.

Close the connection after receiving the http header, so you don't download the file.

[quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"][/font]

Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...