POST Hidden Input Fields -> nginx.0.9.2
Maxim Dounin
mdounin at mdounin.ru
Wed Jan 19 18:18:02 MSK 2011
Hello!
On Wed, Jan 19, 2011 at 12:55:24PM -0300, Ranier wrote:
> Hi,
> There are any special reason for r->header_in->pos not contain POST
> Hidden Input fields?
>
> Test with nginx-0.9.2
> <form method="POST" action="frm_handler">
> <input type="hidden" value="AA2d" name="entry_id">
> <input type="text" value="" name="full_name">
> <input type="button" value="Send">
> </form>
>
> The field "entry_uid" not appears in r->header_in->pos, why not?
Uhm, r->header_in is an internal buffer used during header
reading/parsing. It may occasinally happen to contain parts of
request body if it happened to be read with headers, but it's not
something one may use to access body data.
If you need to access body data - you should use
ngx_http_read_client_request_body() function and r->request_body
in it's callback.
Maxim Dounin
More information about the nginx-devel
mailing list