atom feed6 messages in ru.sysoev.nginxRe: Tracking the start and complete o...
FromSent OnAttachments
Robert La FerlaOct 15, 2010 8:20 am 
Manlio PerilloOct 15, 2010 1:53 pm 
EugaiaOct 15, 2010 2:11 pm 
Manlio PerilloOct 16, 2010 2:03 am 
EugaiaOct 16, 2010 7:57 am 
Robert La FerlaOct 17, 2010 5:47 pm 
Subject:Re: Tracking the start and complete of a download?
From:Eugaia (ngx.@gmail.com)
Date:Oct 15, 2010 2:11:49 pm
List:ru.sysoev.nginx

Hi,

On 15/10/2010 21:54, Manlio Perillo wrote:

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.

I think you should be able to use the ngx_http_echo_module to achieve this. Just use an echo_subrequest directive to send a request to the URL that you want. This request will only be made once the upload has completed. Any other module that calls a subrequest after the files have been uploaded should work too.

One thing : if you don't know the server that you'll connect to at the time the config file is read, you'll need to set up a resolver for DNS.

Good luck!

Marcus.