Jump to content
Sign in to follow this  
Excalibur

InetGetSize

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

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
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)

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×
×
  • Create New...