Tracking the start and complete of a download?

Robert La Ferla robert.laferla at o-ms.com
Fri Oct 15 19:21:16 MSD 2010


  How could I configure nginx so that when a download is started and 
when it completes, it makes a HTTP GET request to another web server?

e.g.

1.  User requests http://nginx.com/download/file.zip?data=123456   (the 
filename and some additional getargs)
2.  nginx calls 
http://myotherserver.com/downloadStarted?url=/download/file.zip&data=123456   
(passes the original url with getargs)
3.  nginx serves byte-range requests of file.zip to user
4.  nginx determines that all byte-range requests have been served and 
calls 
http://myotherserver.com/downloadCompleted?url=/download/file.zip&data=123456 
(passes the original url with getargs)

-- 
- --
Robert La Ferla
VP Engineering
OMS SafeHarbor

This message (and any attachments) contains confidential information and is protected by law.  If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, distribution, or the taking of any action based on this message, is strictly prohibited.




More information about the nginx mailing list