[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] POST problems on RAQ2



At 05:47 31/01/2000 , Clint Gilchrist wrote:

I have a form setup to use method=post and then a simple perl program the
reads the data from stdin, displays it to the client in text mode and also
reads and displays all ENV variables.  I never get any data from STDIN,
CONTENT_LENGTH does not appear to exist, and the REQUEST_METHOD always
returns as GET no matter what method I put in the FORM tag.  If I use
method=get, everything works and I am able to get data via QUERY_STRING.

GET and POST work in different ways. One passes the
information via stdin, the other places it in an environment
variable, which you have to read yourself.

Now I don't know anything at all about CGIWRAP, so
I can't help you there.

But, in short, depending on what you are
coding in, you will have to handle GET and
POST differently. A CGI tutorial should
cover some of these issues.

Hope this helps,

J

-------------------------
James Robertson
Step Two Designs Pty Ltd
SGML, XML & HTML Consultancy
Illumination: an out-of-the-box Intranet solution

http://www.steptwo.com.au/
jamesr@xxxxxxxxxxxxxx