Re: ap_get_brigade hangs when submitting a muitipart/form-data

2008-02-15 Thread Moacir Schmidt
***News***: After some days and headaches, I figured out that this problem occurs only on my local machine running IE (6 or 7) on Windows Server 2003 accessing Debian Linux (sarge or etch) on a virtual machine at the same computar (using vmware) with apache 2.2.3-4 or 2.2.8. It does not happen on

Re: Module example to submit a muitipart/form-data

2008-02-15 Thread Chris Kukuchka
From: "Moacir Schmidt" [EMAIL PROTECTED] > Does anyone have an example of module to handle a mutipart/form-data > submission that works with apache 2.2? I am not sure what type of "handling" you are looking for. However, here is the block my module uses to pass the request content. It adequa

Module example to submit a muitipart/form-data

2008-02-15 Thread Moacir Schmidt
Hi, everybody! Does anyone have an example of module to handle a mutipart/form-data submission that works with apache 2.2? I found some (like mod_upload at http://apache.webthing.com/mod_upload/) but all of them hangs when submitting a file larger than 22k on my tests (this problem has its own th

Re: ap_setup_client_block and Content-Length

2008-02-15 Thread Moacir Schmidt
Have you tried: apr_table_get(r->headers_in, 'Content-Length'); ? On Fri, Feb 15, 2008 at 1:18 PM, Charles Fry <[EMAIL PROTECTED]> wrote: > Hi, > > I desire to access a request's Content-Length from an input filter. > The only way I've been able to determine to do this short of manually > parsi

RE: ap_setup_client_block and Content-Length

2008-02-15 Thread Brian Smith
Nick Kew wrote: > "Charles Fry" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > I desire to access a request's Content-Length from an input filter. > > When it exists, you can get it with > apr_table_get(r->headers_in, "Content-Length") There is no way to get an accurate content length if other in

Re: ap_setup_client_block and Content-Length

2008-02-15 Thread Nick Kew
On Fri, 15 Feb 2008 11:18:47 -0500 "Charles Fry" <[EMAIL PROTECTED]> wrote: > Hi, > > I desire to access a request's Content-Length from an input filter. When it exists, you can get it with apr_table_get(r->headers_in, "Content-Length") -- Nick Kew Application Development with Apache - the A

ap_setup_client_block and Content-Length

2008-02-15 Thread Charles Fry
Hi, I desire to access a request's Content-Length from an input filter. The only way I've been able to determine to do this short of manually parsing the header myself is to call ap_setup_client_block and then read r->remaining, but I don't see any precedent for doing this in other modules (that s