[En-Nut-Discussion] httpd and forms: New method for POST evaluation

Ole Reinhardt ole.reinhardt at kernelconcepts.de
Fri Aug 26 16:14:30 CEST 2005


Hi all,

as it was requested quite often, I added a new method to httpd.c

void NutHttpProcessPostQuery(FILE *stream, REQUEST * req);

You can call it from your CGI right as the first method if the POST
method will be used. It then reads input data from the http stream and
parses it in the same way as it is done using the GET method. So you can
process your parameters with NutHttpGetParameter(req, "MY_EDIT_FIELD")
for example.

This function is not called automaticaly if you with to manage the input
data in your own way.

Hope you'll find the function usefull. You'll find the code in the CVS.

Best regards,

Ole Reinhardt

-- 
kernel concepts    Tel: +49-271-771091-14
Dreisbachstr. 24   Fax: +49-271-771091-19
D-57250 Netphen    E+ : +49-177-7420433
--





More information about the En-Nut-Discussion mailing list