<div dir="ltr"><div><div>This means that if relying solely on nginx we need multiple regexes to extract the parameters <br>(we need to match on both the unescaped and escaped characters)<br></div>or using Lua we can unescape and do string processing using the Lua libraries to extract the parameters.<br>
<br><br></div><div> Correct?<br></div></div><div class="gmail_extra"><br clear="all"><div>----appa<br><br></div>
<br><br><div class="gmail_quote">On Wed, Feb 12, 2014 at 3:51 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello!<br>
<div class=""><br>
On Wed, Feb 12, 2014 at 02:16:29PM +0100, António P. P. Almeida wrote:<br>
<br>
> Hello Maxim,<br>
><br>
> Thank you. In fact since I never saw this type of URI before on an API I<br>
> thought that<br>
> trying to use the path segment parameters as a query string argument was<br>
> borderline<br>
> RFC compliant.<br>
><br>
> The original API I was referring to uses the parameter as an argument since<br>
> they pass a session token<br>
> as a parameter:<br>
><br>
> /api;jsessionid=somehash?t=1&q=2<br>
><br>
> obviously they have some issues with their API well beyond merely being non<br>
> RFC 3986<br>
> compliant :)<br>
<br>
</div>I don't think that passing session id as a path segment parameter<br>
is wrong per se.  One can think of it as ""api" path segment,<br>
version for a session specified", and it should work as long as<br>
it's properly handled by the server which implements the API.  But<br>
it may be non-trivial to work with such URIs in various software,<br>
including nginx, as path segment parameters support is usually<br>
quite limited.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Maxim Dounin<br>
<a href="http://nginx.org/" target="_blank">http://nginx.org/</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></div></div></blockquote></div><br></div>