Jump to content

Recommended Posts

Posted

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
Posted (edited)

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 :)

Edited by jaenster

-jaenster

  • Developers
Posted

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.
  :)

Posted

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)

  • 2 weeks later...
Posted

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
Posted

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]

  • 4 weeks later...
Posted

If it doesnt download the file, then how come when i test it on 10 Files of increasing size, it takes longer and longer to geat the file size as the files sizes increase?

Ooo Ëxçã¿îbúr ooO"Information Is Not Knowledge." ~Albert Einstein
Posted

This is stupid. Can't you test this yourself?

MsgBox(4096, "", InetGetSize("http://mirror.mcs.anl.gov/pub/ubuntu-iso/CDs/6.06/ubuntu-6.06.1-desktop-i386.iso")
Does that take you a long time to execute? No? Then obviously it doesn't download the entire file.

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
×
×
  • Create New...