<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Em 22/1/2011 02:14, agentzh escreveu:
<blockquote
cite="mid:AANLkTimVu6oqYYOGS0TrhnQi1c58hk4H0eZTnsQioHvJ@mail.gmail.com"
type="cite">
<pre wrap="">On Fri, Jan 21, 2011 at 8:58 PM, Ranier <a class="moz-txt-link-rfc2396E" href="mailto:ranier@cultura.com.br"><ranier@cultura.com.br></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">But the most surprising is lack of core support for POST FIELDS?
With apache is easy get values of POST FIELDS, but still with nginx is
necessary one or more modules!
</pre>
</blockquote>
<pre wrap="">
Have you checked the ngx_form_input module?
<a class="moz-txt-link-freetext" href="http://github.com/calio/form-input-nginx-module">http://github.com/calio/form-input-nginx-module</a>
With this module, it's easy to manipulate those "POST FIELDS" ;)
It's also possible to do this in Lua in ngx_lua :)
Cheers,
-agentzh
_______________________________________________
nginx-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://nginx.org/mailman/listinfo/nginx-devel">http://nginx.org/mailman/listinfo/nginx-devel</a>
</pre>
</blockquote>
Hi Agentzh,<br>
Yes I checked this module.<br>
<br>
IMO, <span class="Apple-style-span" style="border-collapse:
separate; color: rgb(0, 0, 0); font-family: 'Times New Roman';
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span" style="font-family: arial,sans-serif;
font-size: 24px;"><span class="hps" title="Clique para mostrar
traduções alternativas">it</span><span
class="Apple-converted-space"> </span><span class="hps"
title="Clique para mostrar traduções alternativas">has</span><span
class="Apple-converted-space"> </span><span class="hps"
title="Clique para mostrar traduções alternativas">drawbacks!<br>
For one page, with fews fields, works well.<br>
But, with lots of pages, each with many fields, slodown all.<br>
<br>
</span></span></span><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0);
font-family: 'Times New Roman'; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: 2; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px; font-size:
medium;"><span class="Apple-style-span" style="font-family:
arial,sans-serif; font-size: 24px;"><span class="hps"
title="Clique para mostrar traduções alternativas">Drawbacks:</span></span></span><br>
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: 2; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span" style="font-family: arial,sans-serif;
font-size: 24px;"><span class="hps" title="Clique para mostrar
traduções alternativas">1. Need set field by field in
nginx.conf ($var)<br>
2. R</span></span></span><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0);
font-family: 'Times New Roman'; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: 2; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px; font-size:
medium;"><span class="Apple-style-span" style="font-family:
arial,sans-serif; font-size: 24px;"><span class="hps"
title="Clique para mostrar traduções alternativas">un</span><span
class="Apple-converted-space"> </span><span class="hps"
title="Clique para mostrar traduções alternativas">the</span><span
class="Apple-converted-space"> </span><span class="hps"
title="Clique para mostrar traduções alternativas">whole</span><span
class="Apple-converted-space"> </span><span class="hps"
title="Clique para mostrar traduções alternativas">module</span><span
title="Clique para mostrar traduções alternativas" class="">,
each time</span><span class="Apple-converted-space"> </span><span
class="hps" title="Clique para mostrar traduções alternativas">you</span><span
class="Apple-converted-space"> </span><span class="hps"
title="Clique para mostrar traduções alternativas">read</span></span></span>
one field.<br>
3. Copy data<br>
4. More memory for $var<br>
<br>
Core support for POST FIELDS:<br>
1. No need set $var in nginx.conf<br>
2. Read all fields one pass<br>
3. Each field in ngx_str_t variable, no need data copy, less memory<br>
4. Performance<br>
<br>
Best regards,<br>
<br>
Ranier Vilela<br>
</body>
</html>