@Eric,Let me read that what you have suggested. My problem is, the POST
request coming is not a login form but it is un-parsable JSON string
(application/x-ndjson). I am using some C string function to extract that part
from request and setting it in the response header as part of my C code. Bu
Hello Harshil Fadia,
Just to be sure that the below are just typing errors.
1) In the util_read procedure, the statement return rc; is outside the brackets
And
2) You have different name in the MODULE DEFINITION (regiter_hooks) and in the
name of the procedure (register_hooks)
I don't think you want to replace the handler.
I suggest reading how mod_auth_form uses mod_request to do similar
stuff w/ the body before the handler sees it.
On Mon, May 11, 2020 at 1:30 PM harshil fadia
wrote:
>
> How do I implement below requirement? Please help..
>
> Read POST request body
How do I implement below requirement? Please help..
Read POST request body >> Take out some data from request body >> Set
particular response header attribute based on request attribute >> Send
response back to client
What I have tried to do so far is wrote Apache module in C, read the Post bod