Re: ap_get_client_block vs bucket brigades

2008-07-17 Thread Jason Fister
Sorin, On Thu, Jul 17, 2008 at 5:52 PM, Sorin Manolache <[EMAIL PROTECTED]> wrote: > Just a caveat. Loop like this: > > while ((n = ap_get_client_block()) > 0) > ... > > and not > > while (already_read < request->remaining) { > n = ap_get_client_block(); > alread_read += n; > } > Thanks for

Re: ap_get_client_block vs bucket brigades

2008-07-17 Thread Jason Fister
On Thu, Jul 17, 2008 at 3:44 PM, Nick Kew <[EMAIL PROTECTED]> wrote: > >I know when we use the > > ap_get_client_block method to read the data, the data is not > > available that point onwards to any other filter/module and that is > > totally fine. Thats because when the uri has '/rest' i

Re: ap_get_client_block vs bucket brigades

2008-07-17 Thread Sorin Manolache
On 2008-07-17, Jason Fister <[EMAIL PROTECTED]> wrote: > Hello there, > > I have a module thats working as designed and the only reason I am sending > this mail is because I want to confirm what I am doing is the correct way to > do it. > > A little background: > > We wanted to convert some le

Re: ap_get_client_block vs bucket brigades

2008-07-17 Thread Nick Kew
On Thu, 17 Jul 2008 15:06:25 -0400 "Jason Fister" <[EMAIL PROTECTED]> wrote: > Clients can POST, PUT, GET to this uri. I use ap_get_client_block to > read the http body in case of POST and PUT. If that works for you, then it's fine. >I know when we use the > ap_get_client_block method to

ap_get_client_block vs bucket brigades

2008-07-17 Thread Jason Fister
Hello there, I have a module thats working as designed and the only reason I am sending this mail is because I want to confirm what I am doing is the correct way to do it. A little background: We wanted to convert some legacy services to REST webservice. Clients can upload and retrieve data usin