Thanks for your suggestion. <br><br><br><div class="gmail_quote">2009/4/3 Yu.Cheung <span dir="ltr"><<a href="mailto:nkcheungyu@gmail.com">nkcheungyu@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think you can write an upstream module to resolve it.<br>
<br>
use the HEAD you get, to make a request, send the new request to the<br>
upstream you want to sent, get the response, check it,<br>
<br>
and then you can use ngx_http_internal_redirect() function to redirect<br>
the origin request to another upstream you defined.<br>
<br>
just do it, good luck!<br>
<br>
<br>
<br>
2009/3/25 Delta Yeh <<a href="mailto:delta.yeh@gmail.com">delta.yeh@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi all,<br>
> I want to implement the following feature:<br>
> 1. client HEAD request arrive , my module send it to an upstream.<br>
> 2. the upstream return response.<br>
> 3. my module check the response, if it is not the data I want, send the<br>
> origin request to another upstream<br>
><br>
> I know the block mode will work. I want to know if there is asynchronous<br>
> mode which will fit into nginx better?<br>
><br>
> BR,<br>
> DeltaY<br>
><br>
<br>
</div></div></blockquote></div><br>