[En-Nut-Discussion] POST method.

Lee hyun-Keun hyun at argostech.co.kr
Tue Feb 3 02:26:52 CET 2004


To Lars,
To get cgi input posted using POST method, I read from stdin up to the length obtained from : getenv("CONTENT_LENGTH") call in linux. You should perhaps find how to do it in Ethernut.
Cheers

----- Original Message ----- 
From: "Lars Andersson" <lakab at telia.com>
To: "'Ethernut User Chat (English)'" <en-nut-discussion at egnite.de>
Sent: Tuesday, February 03, 2004 6:13 AM
Subject: RE: [En-Nut-Discussion] POST method.


> Alexander,
> 
> When I use a CGI page with "method=GET" I
> can pick up query items using NutHttpGetParameter() calls,
> but if I would use "method=POST" I do not know 
> how (or where) to find the query.
> 
> Example:
> FormTop_P[] =  "<FORM NAME=\"Lyse\" ACTION=\"/cgi-bin/lyse.cgi\"
> METHOD=\"GET\">";
> 
> I would like to say METHOD=\"POST\" instead.
> 
> 
> 
> 
> -----Original Message-----
> From: en-nut-discussion-bounces at egnite.de
> [mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of Alexander
> Baranov
> Sent: Monday, 02 February, 2004 21:49
> To: Ethernut User Chat (English)
> Subject: Re: [En-Nut-Discussion] POST method.
> 
> 
> Hi, Lars.
> I am not sure that I've understood the question, but I can send you my
> code
> 'as is'.
> 
> ----- Original Message ----- 
> From: "Lars Andersson" <lakab at telia.com>
> To: "'Ethernut User Chat (English)'" <en-nut-discussion at egnite.de>
> Sent: Monday, February 02, 2004 3:29 PM
> Subject: [En-Nut-Discussion] POST method.
> 
> 
> > Hi all,
> > a question triggered by Alexander Baranov's message today.
> >
> > Is there an example showing how to retrieve the query when using
> > the POST method with CGI. This might not be the correct terminology
> > but I hope you understand what I mean.
> >
> > I use GET with CGI but am bothered with the 256 byte limit.
> >
> > //
> > Lars H. Andersson
> >
> > _______________________________________________
> > En-Nut-Discussion mailing list
> > En-Nut-Discussion at egnite.de
> > http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
> 
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
> 
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
> 


More information about the En-Nut-Discussion mailing list