NGINX status code based on *response* body

2023-09-24 Thread Muhammad Nuzaihan
Hi, I would like to return an error message based on the *response* body. I know i can do it easily with *request* body (with "return NGX_HTTP_BAD_REQUEST") but my case i want to do it with *response* body. Also i have tried this code with response body filter but i got "*1 header already sent,

processing a request without body

2023-12-12 Thread Muhammad Nuzaihan
, Muhammad Nuzaihan ___ nginx-devel mailing list nginx-devel@nginx.org https://mailman.nginx.org/mailman/listinfo/nginx-devel

Re: processing a request without body

2023-12-13 Thread Muhammad Nuzaihan
Hi, Sorry about the previous email. I meant ngx_http_top_request_body_filter is not executed whenever there is no body. Thank you, Muhammad Nuzaihan On Wed, Dec 13, 2023 at 3:55 PM Muhammad Nuzaihan wrote: > > Hi, > > I need to process requests with only URI path (without body)

Re: processing a request without body

2024-01-10 Thread Muhammad Nuzaihan
/ngx_http_mirror_module.c I'm going with point 1. I know it will break proxying but it's more simpler and i can think of doing 2. later on. Thank you, Zaihan On Thu, Dec 21, 2023 at 8:59 AM Maxim Dounin wrote: > > Hello! > > On Tue, Dec 19, 2023 at 10:11:04PM +0800, Muhammad Nuzaihan wrote:

Re: processing a request without body

2024-01-11 Thread Muhammad Nuzaihan
, ngx_http_foo_body_handler); if (rc >= NGX_HTTP_SPECIAL_RESPONSE) { return rc; } Can i buy you coffee? Thank you! On Thu, Jan 11, 2024 at 1:06 PM Muhammad Nuzaihan wrote: > > Hi Maxim, > > Sorry for asking too many questions. > > I did looked at he mirror module and i c

Re: processing a request without body

2024-01-12 Thread Muhammad Nuzaihan
I do doing it at NGX_HTTP_ACCESS_PHASE in the handler. It seems that if "content_length = 0", it skips the access phase handler as well? Does this have to do with what we discussed? On Fri, Jan 12, 2024 at 5:59 AM Maxim Dounin wrote: > > Hello! > > On Fri, Jan 12, 2024 at 03:

Re: processing a request without body

2024-01-12 Thread Muhammad Nuzaihan
15:05:59 [debug] 2452969#0: *17 generic phase: 10 2024/01/13 15:05:59 [debug] 2452969#0: *17 generic phase: 11 2024/01/13 15:05:59 [debug] 2452969#0: *17 http init upstream, client timer: 0 2024/01/13 15:05:59 [debug] 2452969#0: *17 epoll add event: fd:3 op:3 ev:80002005 On Sat, Jan 13, 2024 at 3:1

Re: processing a request without body

2024-01-12 Thread Muhammad Nuzaihan
59 [debug] 2452969#0: *17 http init upstream, client timer: 0 2024/01/13 15:05:59 [debug] 2452969#0: *17 epoll add event: fd:3 op:3 ev:80002005 Thank you Maxim for answering my questions! On Sat, Jan 13, 2024 at 6:23 AM Maxim Dounin wrote: > > Hello! > > On Fri, Jan 12, 2024 at 1

Re: processing a request without body

2024-01-12 Thread Muhammad Nuzaihan
01/13 15:19:44 [debug] 2516641#0: notify eventfd: 9 2024/01/13 15:19:44 [debug] 2516641#0: testing the EPOLLRDHUP flag: success 2024/01/13 15:19:44 [debug] 2516641#0: malloc: 55ADC47073D0:6144 2024/01/13 15:19:44 [debug] 2516641#0: malloc: 7F4DF059E010:253952 2024/01/13 15:19:44 [debug] 2516

Re: processing a request without body

2023-12-19 Thread Muhammad Nuzaihan
errors. Handlers can only handle (from what i know) URL path and headers. Request body requires a request chain (ngx_chain_t)) to piece out the request body and handlers doesn't seem to have t ngx_chain_t unlike request body filters. Or maybe i am wrong in this case? Thank you, Muhammad Nuzaihan

Re: nginx web server configuration file for Suprema BioStar 2 Door Access System

2024-03-08 Thread Muhammad Nuzaihan
Hello, I don't think nginx uses Java key store and that's specific only for Java applications. you should ask your manufacturer the details on how your door works. Also this (nginx-devel@nginx.org) mailing list is specifically for developers to discuss about code/bugfix/features and not for