You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Giuliano Catrambone <gi...@catrasoftware.it> on 2008/07/13 12:31:00 UTC

[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 <URL:http://httpd.apache.org/userslist.html> 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