Hi Thomas,<br><br>do you have a function to get raw data (without header) to print directly ?<br><br>Thanks.<br><br><div class="gmail_quote">2009/5/25 Mickael Auger <span dir="ltr"><<a href="mailto:mickael.auger@gmail.com">mickael.auger@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Great thanks :)<br><br>I think that a function like "print_postargs" existed.<br>
<br>
Bye.<br><br><div class="gmail_quote">2009/5/25 thomas fossati <span dir="ltr"><<a href="mailto:tho@koanlogic.com" target="_blank">tho@koanlogic.com</a>></span><div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Mickael,<div><br>
<br>
On May 25, 2009, at 5:24 PM, Mickael Auger wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
But today, I wish get all POST data to print directly without parse them and without know their name or their value.<br>
<br>
Do you have a function to get all POST data and convert to a string, please ?<br>
</blockquote>
<br>
<br></div>
you have to create a formatter for your name/value pairs and supply it to the vars_foreach function, like the following:<br>
<br>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br>
<%!<br>
int postargs_fmt (var_t *v, void *dummy)<br>
{<br>
io_printf(out, "<p>%s = %s</p>", var_get_name(v), var_get_value(v));<br>
return 0;<br>
}<br>
%><br>
<html><br>
<head><title>test POST args fmt</title></head><br>
<body><br>
<br>
<%<br>
vars_foreach(request_get_postargs(request), postargs_fmt, NULL);<br>
%><br>
<br>
</body><br>
</html><br>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br>
<br>
ciao, t.<br>
<br>
_______________________________________________<br>
Klone-users mailing list<br>
<a href="mailto:Klone-users@koanlogic.com" target="_blank">Klone-users@koanlogic.com</a><br>
<a href="http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users" target="_blank">http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users</a><br>
</blockquote></div></div></div><font color="#888888"><br><br clear="all"><br>-- <br>Mickaël AUGER<br><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Mickaël AUGER<br><br>