Welcome! Log In Create A New Profile

Advanced

Capturing Encoded Location Variable Data

Demitrious Kelly
April 07, 2021 06:08PM
Hello,

Given the following two location configurations:

location ~ ^/test/named/(?<foo>.+)$ {
return 200 $foo;
}

location ~ ^/test/numbered/(.+)$ {
set $foo $1;
return 200 $foo;
}
Are the following two results expected?

# curl http://127.0.0.1:8088/test/named/%D7%94%D7%98%D7%99%D7%95%D7%9C
הטיול

# curl http://127.0.0.1:8088/test/numbered/%D7%94%D7%98%D7%99%D7%95%D7%9C
%D7%94%D7%98%D7%99%D7%95%D7%9C

I have not been able do find any documentation, yet, explaining why these two methods of capturing the same data yield different results.

Thanks in advance!
DK

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Capturing Encoded Location Variable Data

Demitrious Kelly April 07, 2021 06:08PM

Re: Capturing Encoded Location Variable Data

Maxim Dounin April 07, 2021 07:16PM

Fwd: Capturing Encoded Location Variable Data

Demitrious Kelly April 07, 2021 08:18PM

Re: Fwd: Capturing Encoded Location Variable Data

Maxim Dounin April 08, 2021 09:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 75
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready