Excalibur Posted January 17, 2007 Share Posted January 17, 2007 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 More sharing options...
jaenster Posted January 18, 2007 Share Posted January 18, 2007 (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 January 18, 2007 by jaenster -jaenster Link to comment Share on other sites More sharing options...
Developers Jos Posted January 18, 2007 Developers Share Posted January 18, 2007 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 More sharing options...
MadBoy Posted January 19, 2007 Share Posted January 19, 2007 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 More sharing options...
Excalibur Posted January 31, 2007 Author Share Posted January 31, 2007 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 More sharing options...
CoePSX Posted January 31, 2007 Share Posted January 31, 2007 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 More sharing options...
Excalibur Posted February 24, 2007 Author Share Posted February 24, 2007 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 Link to comment Share on other sites More sharing options...
Valik Posted February 24, 2007 Share Posted February 24, 2007 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now