0

I am a newbie in Nginx. I want to fetch a particular value "en" from this form data in Nginx ($request_body) "csrfmiddlewaretoken=7cV8XPsznWBtKRDw2surXEYoUU6f4Bow4JHwdzrVWOEle0J1rw35PIYmqAVBIk52&next=/&language=en".

Can this be done in Nginx.? If so, how can I write a rule in Nginx for the same one? Please support me.

aks
  • 37
  • 1
  • 6
  • Use a `map`. See [this answer](https://serverfault.com/questions/1056539/how-to-get-substring-of-a-string-with-nginx/1056548#1056548). – Richard Smith Mar 13 '21 at 14:11
  • 1
    Does this answer your question? [How to get substring of a string with nginx](https://serverfault.com/questions/1056539/how-to-get-substring-of-a-string-with-nginx) – Ginnungagap Mar 14 '21 at 08:04
  • @Ginnungagap I need a string match 'en' in this condition. But I am unable to figure it out. – aks Mar 14 '21 at 13:06

0 Answers0