<div dir="ltr"><div dir="ltr"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div>It appears that this issue was not a problem with nginx unit.</div><div><br></div><div>After wasting a lot of time with the very misleading Q&A thread <a href="https://stackoverflow.com/questions/8130692/how-can-query-string-parameters-be-forwarded-through-a-proxy-pass-with-nginx">https://stackoverflow.com/questions/8130692/how-can-query-string-parameters-be-forwarded-through-a-proxy-pass-with-nginx</a> I determined that no unusual nginx configuration change was necessary to pass the parameters via proxy_pass.</div><div><br></div><div>The shell was trimming anything following an '&' character unless the url was surrounded with quotation marks.</div><div>For example:</div><div>curl "<a href="http://127.0.0.1:8888/?v1=1&v2=2" target="_blank">127.0.0.1:8888?v1=1&v2=2</a>"</div><div><br></div><div>There was a bug in my detection code that failed to recognize when the issue had been fixed.</div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Aug 30, 2018 at 3:33 AM Jason Eads <<a href="mailto:jeads442@gmail.com">jeads442@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I'm using nginx unit. I'm attempting to pass a query string to a python script that unit is hosting via curl as a test. A hello_world.py example works fine, implying unit configuration is not the issue. Example URLs listed below. My code is receiving an empty string for environ.QUERY_STRING in every case. What is the appropriate procedure or URL format to pass arguments into a wsgi python script via nginx unit?</div><div><br></div><div>My tests showed that with module set no additional path needed to be provided. The IP address and port was enough to run hello_world.py.</div><div><br></div><div>VARIATIONS:</div><div>curl <a href="http://127.0.0.1:8888?v1=1&v2=2" target="_blank">127.0.0.1:8888?v1=1&v2=2</a><br></div><div>curl <a href="http://127.0.0.1:8888/?v1=1&v2=2" target="_blank">127.0.0.1:8888/?v1=1&v2=2</a></div><div>curl <a href="http://127.0.0.1:8888/index?v1=1&v2=2" target="_blank">127.0.0.1:8888/index?v1=1&v2=2</a><br></div><div>curl <a href="http://127.0.0.1:8888/index.py?v1=1&v2=2" target="_blank">127.0.0.1:8888/index.py?v1=1&v2=2</a><br></div></div>
</blockquote></div></div></div>