Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 056DEC32E for ; Thu, 17 May 2012 19:51:07 +0000 (UTC) Received: (qmail 42597 invoked by uid 500); 17 May 2012 19:51:06 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 42565 invoked by uid 500); 17 May 2012 19:51:06 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 42553 invoked by uid 99); 17 May 2012 19:51:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2012 19:51:06 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jodibosa@gmail.com designates 209.85.212.169 as permitted sender) Received: from [209.85.212.169] (HELO mail-wi0-f169.google.com) (209.85.212.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2012 19:50:59 +0000 Received: by wibhn14 with SMTP id hn14so264830wib.0 for ; Thu, 17 May 2012 12:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=VxPArP7cg8vBe8HZel/VM+0NZ2f/Ovog0kKzYhpI6Ck=; b=bnV3rX1ZAFgUHyfKYOYz9meuQKDh4jYRSQSmjaB74orYPbVk3f076BCaEqIRhjTnIh rZM40qgrVYxq4vdvib0EAzghXoFMd04/ckbsQEBNKl8RUKu4XQzP6ctfvA2/JPVX+GD6 Vadu/jh5J8RbxRWiBllkDCoRGxfCrotfJsXPhH8JBwXTyLpBRB2ncUpgRobFs4OMOR8h rTOiMAu58mze1KybAsppyVacftAn3U3fRLvZ1wdAl2mlx1iw1HmIANxIe5IoyRL1OiXb kJ/T0EQCUuoQLytbXKKuEQoWM2XS0bIsk/eKK62rW+Rpvh0HkhDcGeIHkHHvv4VLIbGb DX+w== MIME-Version: 1.0 Received: by 10.180.98.201 with SMTP id ek9mr19535372wib.7.1337284238980; Thu, 17 May 2012 12:50:38 -0700 (PDT) Received: by 10.216.183.140 with HTTP; Thu, 17 May 2012 12:50:38 -0700 (PDT) Date: Thu, 17 May 2012 15:50:38 -0400 Message-ID: Subject: remove content in Input Filter From: Jodi Bosa To: modules-dev@httpd.apache.org Content-Type: multipart/alternative; boundary=f46d04428edc0734c704c040c0ef --f46d04428edc0734c704c040c0ef Content-Type: text/plain; charset=ISO-8859-1 I am trying to write an Input Filter that removes specific content from a bucket brigade but failing in getting it to work: apr_bucket_read(aBucket, &bucketStr, &readLen, APR_BLOCK_READ); startPos = ....; apr_bucket_split(aBucket, (size_t)startPos); tmpBucket = APR_BUCKET_NEXT(aBucket); len = ....; apr_bucket_split(tmpBucket, (size_t)len); tmpBucket2 = APR_BUCKET_NEXT(tmpBucket); apr_bucket_delete(tmpBucket); What am I missing? Thanks. --f46d04428edc0734c704c040c0ef--