Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 33132 invoked from network); 13 Jul 2008 10:31:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jul 2008 10:31:45 -0000 Received: (qmail 35748 invoked by uid 500); 13 Jul 2008 10:31:35 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 35722 invoked by uid 500); 13 Jul 2008 10:31:34 -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 35711 invoked by uid 99); 13 Jul 2008 10:31:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Jul 2008 03:31:34 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [62.149.128.209] (HELO smtp5.aruba.it) (62.149.128.209) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 13 Jul 2008 10:30:40 +0000 Received: (qmail 23119 invoked by uid 89); 13 Jul 2008 10:30:57 -0000 Received: by simscan 1.1.0 ppid: 23114, pid: 23117, t: 0.1365s scanners: clamav: 0.88.4/m:40/d:1722 Received: from unknown (HELO ?192.168.2.5?) (catrauser/catrasoftware.it@82.48.99.200) by smtp5.aruba.it with SMTP; 13 Jul 2008 10:30:57 -0000 Message-ID: <4879D964.8070103@catrasoftware.it> Date: Sun, 13 Jul 2008 12:31:00 +0200 From: Giuliano Catrambone User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: smtp5.aruba.it 1.6.2 0/1000/N X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] API to get the content type that will return the HTTP server? Hi all, I built a C module to do some activities every time a new request is received by the HTTP server. Inside this module I need to know the Content Type the HTTP Server will send to the client. I found the ap_default_type(request_rec *r) API but I just discovered that it does not return the content type sent to the client because it seems to consider only the mime.types conf. file and do not consider the 'AddType' directives inside the httpd.conf. Could you tell me the way, from my C module, to retrieve the content type returned by the HTTP Server to the client? Thanks in advance giu -- ----------------------------------------------------------------- Giuliano Catrambone Director, Professional Services Open source projects: http://sourceforge.net/projects/catralibraries/ http://sourceforge.net/projects/openstreaming/ CatraSoftware: Home page: http://www.catrasoftware.it Streaming page: http://www.catrasoftware.it/Streaming/CatraStreamingPlatform.htm Mobile +39.393.8816655 Fixed: +39.02.90377228 Skype: Catrambone Giuliano msn: giulianocatrambone@hotmail.com Jabber: giuliano.catrambone@Jabber.org Yahoo: giuliano.catrambone ----------------------------------------------------------------- --------------------------------------------------------------------- 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