Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E066571C5 for ; Tue, 6 Sep 2011 20:36:41 +0000 (UTC) Received: (qmail 45649 invoked by uid 500); 6 Sep 2011 20:36:39 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 45582 invoked by uid 500); 6 Sep 2011 20:36:38 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 45574 invoked by uid 99); 6 Sep 2011 20:36:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2011 20:36:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of someword@gmail.com designates 209.85.213.45 as permitted sender) Received: from [209.85.213.45] (HELO mail-yw0-f45.google.com) (209.85.213.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2011 20:36:30 +0000 Received: by ywf9 with SMTP id 9so5172383ywf.18 for ; Tue, 06 Sep 2011 13:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=YqE7hmW2LVyXM7DQqm/Q38IVxSVxlBLDykbXAUiv76U=; b=svG1tlAC5TkjVo0iJNxt8zDXgTO8DORda6SgV9GZqE4Ve0OLXEzMTdCCpyjjo1E/NY G6pap12xG5hZqMMtjvgtMIGwG7tw6nVhKo1oO2RPlhDcIKtpdfklXSTuh2ukbmdgHExh ozPNWfOQA7ThhLZkmkLKuOBpB2SmcSWe5uH4U= MIME-Version: 1.0 Received: by 10.42.115.200 with SMTP id l8mr4731363icq.116.1315341369659; Tue, 06 Sep 2011 13:36:09 -0700 (PDT) Received: by 10.42.240.1 with HTTP; Tue, 6 Sep 2011 13:36:09 -0700 (PDT) Date: Tue, 6 Sep 2011 13:36:09 -0700 Message-ID: From: deet To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] force chunked response - Apache 2.2.20 Hello. I'm currently working on a project to migrate some websites from Apache 1.3.33 to Apache 2.2.20. For the most part the migration is going smoothly. However we have 1 application which is failing when running transactions against the updated Apache 2.2.20 instance. This particular application is expecting the http response to be chunked (Transfer-Encoding). The application is an embedded http client used in manufacturing devices and cannot be modified:( According to someone who has viewed the source on my behalf they say it's coded to look in the response for "CR LF CR LF followed by the length in hex". In the packet capture between the client and apache 1.3.33 instance I do in fact see the following. "Transfer-Encoding: chunked\r\n Content-Type: text/plain\r\n \r\n" When the application hit's the Apache 2.2.20 instance the request is sent back with the Content-Length header. While i'm sure the http client is not behaving properly I would like to solicit some ideas on what I can change on the server to force the response to be set to "Transfer-Encoding: chunked". I saw some suggestions about unsetting the content-length header in Apache but that didn't force a chunked response (nor did it unset the content-length header). In the virtualhost section i added Header unset Content-Length But the responses still contain that header. I then tried modifying the php file used to generate the response and added "header("Transfer-encoding: chunked"); flush();" But using curl I get the following parse error < * Received problem 2 in the chunky parser Which makes me think the response didn't actually get chunked. Any ideas on how I can support this certainly misbehaving http client is appreciated. My Plan B is to leave the 1.3.33 Apache instance in place but that doesn't feel right. TIA. Deet. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org