Tracking the start and complete of a download?
manlio.perillo at gmail.com
Sat Oct 16 00:54:19 MSD 2010
-----BEGIN PGP SIGNED MESSAGE-----
Il 15/10/2010 17:21, Robert La Ferla ha scritto:
> 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?
This is not possible.
You need to write a custom Nginx module.
Writing the module is not hard, the complex thing is the HTTP GET, since
it should be done so that Nginx main process is not blocked during request.
However there are alternatives, as an example you can have Nginx write
to a FIFO in asynchonous mode, and have an external process read the
FIFO and do the work.
If FIFO is busy (external process is slow to read data), however, Nginx
will have to skip sending notification.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the nginx