Thread: [INC] HTTP
View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-29-2011 , 10:31   Re: [INC] HTTP
Reply With Quote #23

It was my original intention to use bytes-received==file-size for determining when a file transfer finished but, IIRC, the server doesn't always include the size of file in the HTTP header. What I did notice is the server closes the connection after sending the file so I used that to know when file transfer is complete. If you want, find a packet sniffer or if you use Firefox you can install an add-on (or maybe by default) to view headers. If you see something showing file size or w/e I can add something to retrieve size.
__________________

Last edited by Bugsy; 10-29-2011 at 10:43.
Bugsy is offline