www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Faisal Nasim <swift...@bigfoot.com>
Subject mod_cgi/4702: Getting the content-type from the output of a CGI
Date Tue, 06 Jul 1999 12:06:18 GMT

>Number:         4702
>Category:       mod_cgi
>Synopsis:       Getting the content-type from the output of a CGI
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          support
>Submitter-Id:   apache
>Arrival-Date:   Tue Jul  6 05:10:01 PDT 1999
>Last-Modified:
>Originator:     swiftkid@bigfoot.com
>Organization:
apache
>Release:        1.3.6
>Environment:
Redhat Linux 2.2.5-15 6.0
>Description:
Hello,

I am sort of stuck here, where I need to get the content-type of the script that returns some
data to mod_cgi, I am directly editing mod_cgi.c for this purpose. Say:

#!/bin/sh

echo Content-type: cool/etc
echo

How can I grab that cool/etc in mod_cgi.c in a char* ?

And please could you tell me where is the script's output kept? (script_in or script_out)
and how can I possibly convert those to char * from BUFF.

Thank you very much.

P.S. Apache is really great!

Faisal Nasim
A 15 yr old kid, who is a mad about programming! :)
http://wss.hypermart.net/
>How-To-Repeat:

>Fix:
How about a programmer's manual in Apache documentation?
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]




Mime
View raw message