Hi I\'m creating online shop. In this shope people online must be buy files with zip extension. They pay with their credit cards or other methods get key and download produc
A custom server application seems indeed a solution for this, or possibly some kind of scripting.
A normal http server does not notify the end of a connection, but possibly, if you generate the output in a cgi/php/asp/* script, you read the file in cgi/php/asp/* scripting language and send it to the output. when you reach the end of the file, you do the notification, and then end the script.
When you do it that way, it will only detect fully downloaded files, and if the connection gets interrupted half-way, it would not mark the file as downloaded.
a 'cgi-script' can be a compiled c program, (or any other langauge for that matter). Compiled code anyways. A compiled program would give better performance then a interpreted script solution.