Re: POST/CGI arguments?

Toby DiPasquale <[email protected]>
Newsgroups gmane.network.mathopd
Message-ID <[email protected]>
On Tue, 26 Mar 2002, Thorben Thuermer wrote:

> POST? i only see this in request.c:
>         if (r->method == M_POST)
>                 return 405;
> 
> -> always returns 405 method not allowed

This piece of code is in the process_fd() function, where it doesn't make
any sense for a POST request to be allowed. Mathopd certainly handles POST
requests; I have verified this myself. A POST request will usually be
handled by a CLASS_SPECIAL or CLASS_EXTERNAL handler, such as
process_cgi() in cgi.c.

What I was looking for was the location of the POST parameters in the
struct request data structure, but if you say they are in the envp, then I
will look there. Thanks!

<< T o b i a s   D i P a s q u a l e >>
[email protected] | [email protected] | [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.