[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modules
Subject:    RE: [apache-modules] Read request data
From:       "Anthony Wells" <awells () cd-crafters ! com>
Date:       2004-09-07 17:41:37
Message-ID: KEEDKLCNPJCOGNOFCFMACEGMDMAA.awells () cd-crafters ! com
[Download RAW message or body]

Gabriel,

Check out the apreq project at http://httpd.apache.org/apreq for Apache 2.0.
You may find either the module or the source code in the library helpful in
your project.

In my module that reads the POST data, I never call ap_setup_client_block
nore ap_should_client_block.  However, I use bucket brigades to read the
POST data.

Hope this helps,
Anthony



-----Original Message-----
From: Gabriel Dos Santos [mailto:Gabriel.DosSantos@scytl.com]
Sent: Tuesday, September 07, 2004 12:28 PM
To: apache-modules@covalent.net
Subject: [apache-modules] Read request data


Hi,
I'm developing an Apache module and want to read POSTed data. I use the code
of the basic example that can be found everywhere (I took it from the
Stein/MacEachern book):

if ((rc=ap_setup_client_block(r,REQUES_CHUNKED_ERROR))!=OK){
    return rc;
}
if (ap_should_client_block(r)){
    //code here
     ....
}

The problem is that ap_should_client_block(r) always returns 0 and the code
in the if never gets executed. Im invoking the module's URL from an HTML
form with method="post" and a text input field.
I think that I'm missing some function call or server configuration. Is it
posible that I have to enable some option in conf. file in order to receive
form data.
Any help will be greatly appreciated.

Regards,
Gabriel
--

SCYTL Online World Security

Gabriel Dos Santos

Software Engineer

e-mail: Gabriel.DosSantos@scytl.com

phone:  +34 934 230 324

fax:    +34 933 251 028

C. Entença 95 4-1

08015 Barcelona, Spain

 <http://www.scytl.com/> http://www.scytl.com

NOTICE: The information in this e-mail and in any of its attachments is
confidential and intended solely for the attention and use of the named
addressee(s). If you are not the intended recipient, any disclosure,
copying, distribution or retaining of this message or any part of it,
without the prior written consent of SCYTL Online World Security, is
prohibited and may be unlawful. If you have received this in error, please
contact the sender and delete the material from any computer.




---------------------------------------------------------------------
To unsubscribe, e-mail: apache-modules-unsubscribe@covalent.net
For additional commands, e-mail: apache-modules-help@covalent.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic