sample modperl script pls

2000-04-28 Thread Jaime Teng
Hi, I want to learn writing modperl scripts. Im not referring to any perl scripts that are executed by Apache::Registry, but rather a perl script that is invoked by the Apache itself - same level like Apache::Registry. also, know to fetch the URL. Is it stored in the %ENV? thanx Jaime

adding HTTP Headers

2000-04-24 Thread Jaime Teng
Hi, As I am developing WEB Applications with Apache and modperl, it came to my attention that there are some pages that I can 'ALLOW' the browser to cache the pages; I was able to do just that with modperl by sending out this HTTP Header from within the perl scripts: print "Cache-Control: max-a

Re: How to keep "Connection: Keep-Alive"

2000-03-31 Thread Jaime Teng
At 05:19 PM 3/31/00 -0800, you wrote: > >my understanding is that you _must_ know the message size in advance and >generate all the appropriate headers (one of them being the size of the >body to follow ... and that's very important since there is no otherway to >know when the whole body has been

Re: How to keep "Connection: Keep-Alive"

2000-03-31 Thread Jaime Teng
tine problem" it will show up. <- i guess that means, the child is surviving right? jaime > >cliff rayman >genwax.com > >Jaime Teng wrote: > >> At 05:05 PM 3/31/00 -0800, Cliff Rayman wrote: >> >these are all generated thru embperl. >> > >> >

Re: How to keep "Connection: Keep-Alive"

2000-03-31 Thread Jaime Teng
$HTTP and at the very end of the script, it performs print $HTTP; no print or output to STDOUT is done other than that one. therefore, the size of the document can be determined before any IO can be done. i'll try that one out now. > >On Sat, 1 Apr 2000, Jaime Teng wrote: > >>

Re: How to keep "Connection: Keep-Alive"

2000-03-31 Thread Jaime Teng
At 05:05 PM 3/31/00 -0800, Cliff Rayman wrote: >these are all generated thru embperl. > >cliff > > I guess i'll have to install HTML::Embperl to see if it solves my problem. Unless anyone can show me a solution using Apache::Registry i prefer to use strict perl program to generate the HTML page

Re: How to keep "Connection: Keep-Alive"

2000-03-31 Thread Jaime Teng
fference there making your situation different from mine. > >cliff rayman >genwax.com > >Jaime Teng wrote: >

Re: How to keep "Connection: Keep-Alive"

2000-03-31 Thread Jaime Teng
Apache::DBI > >cliff rayman >genwax.com > >Jaime Teng wrote: > >> At 04:05 PM 3/31/00 -0800, Cliff Rayman wrote: >> >I just tested my keep-alive via telnet as you suggested. >> >I am using embperl and mod_perl. >> >I was able to make three separate req

Re: How to keep "Connection: Keep-Alive"

2000-03-31 Thread Jaime Teng
ion is closed on dynamic perl generated pages. also, im sure the perl pages are executed as mod_perl as evident by the existence of the "my() subroutine problem" assosiated with Apache::Registry > >cliff rayman >genwax.com > >Jaime Teng wrote: > >> >Keep-Aliv

Re: How to keep "Connection: Keep-Alive"

2000-03-31 Thread Jaime Teng
>Keep-Alive is a function of the web-server. There are no script changes >involved to keep a connection alive. All you have to do on the server side >is to enable Keep-Alive. See http://www.apache.org/docs/keepalive.html for >an explanation. The web servers (apache, IIS) already have the Keepali

Re: How to keep "Connection: Keep-Alive"

2000-03-31 Thread Jaime Teng
ou're referring to a database connection, the Apache DBI module >keeps the connection alive, not the mod_perl module. > >Jaime Teng wrote: >> >> Hi, >> >> How do you make perl script (either on Linux+Apache+Mod_perl >> or in NT+IIS4 environment) ma

How to keep "Connection: Keep-Alive"

2000-03-31 Thread Jaime Teng
Hi, How do you make perl script (either on Linux+Apache+Mod_perl or in NT+IIS4 environment) make a "Connection: Keep-Alive". On both environment, the connections always closes after the perl script finished execution. Any idea? Jaime