This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Request method in .lp file
#1
Hi I'm searching a way to get info about request method in .lp file.

Probably it is in variable __ngx_req but how can I deal with userdata objects?
Done is better than perfect
Reply
#2
Hi,

Can you explain what you try to achieve?

BR,

Erwin
Reply
#3
Of course, I want prepare a file config.lp which would handle the GET and POST requests based on request method. As simple as thatWink
Done is better than perfect
Reply
#4
Use ngx.var.request_method
Reply
#5
Perfect. Thank you allWink

How can I set header for response?
Done is better than perfect
Reply


Forum Jump: