<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span style="background-color: rgba(255, 255, 255, 0);">Hi,</span></div><span style="background-color: rgba(255, 255, 255, 0);"><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div>     Now I am writing a Nginx module to communicate with an upstream server (LDAP) . I had coded both the create_request and process_header callback functions. But the problem is, I don’t want to talk with the upstream for for all the requests but only for the requests with some special parameters. For example: if a request arrives like <a href="http://www.example.com/connect?value=yes" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="0">http://www.example.com/connect?value=yes</a> , then I want to talk to the upstream to generate the response for the client But if URI is h<a href="http://www.example.com/connect?value=no" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="1">ttp://www.example.com/connect?value=no</a> , then I don’t want to connect to upstream and I need to create my own response to send back to client. What should I do? Please help.<br><br>Thank you</span></body></html>