Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: [mp2] non-parsed headers registry scripts: msg#00207

apache.mod-perl.devel

Subject: Re: [mp2] non-parsed headers registry scripts


Moreover if you look at mod_cgi.c:818, if the script's name starts with 'nph-' it'll cheat at internally remove all the protocol filters which mess with headers letting the script do its own thing.

ugh


The only way mod_perl users can send unparsed headers is by calling:

$r->assbackwards(1);

in their code (as kindly mentioned by Geoff a few months ago).

:)


The problem is that this doesn't work for registry scripts striving to be compatible with mod_cgi, i.e. run unmodified.

Therefore I thought of two posible solutions:

1) Introduce a new option:

PerlOptions +NonParseHeaders

which will do just that, call: $r->assbackwards(1) at the beginning of the response phase.

sure. just remember that that only supresses outgoing headers - it doesn't do anything to incoming headers or make the outgoing ones invisible. I'm never sure exactly what nph scripts do, but if there is more to the mod_cgi implementation than supressing outgoing headers we probably need to evaluate exactly what it is first.


2) An alternative solution is to mess with RegistryCooker to match /npn-/ and call $r->assbackwards(1) on behalf of the script.

nah


The first solution closely matches mp1, by giving users control over the naming of the scripts and even handlers.

The second solution matches 1:1 mod_cgi, which hardcodes 'nph-' condition.

this looks truly awful, and I'm inclined to not support it, so long as we give users some way to do nph scripts.


Which solution do you think is the best?

Also I'm not hardwired on 'PerlOptions +NonParseHeaders' so other names are welcome if you prefer the first option.

sounds fine to me.

--Geoff


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
solaris.opensol...    editors.vim/200...    web.turbogears....    jakarta.ant.dev...    mathematics.max...    text.unicode.ge...    lang.ruby.core/...    xfce.announce/2...    network.centeri...    php.cvs.pear/20...    user-groups.lin...    kde.devel.quant...    file-systems.ar...    redhat.fedora.t...    apple.fink.auto...    gnome.orbit.gen...    qplus.devel/200...    culture.transpo...    video.dri.user/...    operators.nanog...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation