From: Chris W. <ch...@cw...> - 2003-11-03 01:03:51
|
forehead wrote: > ... > Apache without mod_perl: just cgi reguest type, I still not > understand how to request /user/NewUser for cgi env. Is it > http://site/cgi-bin/user/NewUser/oi2.cgi?foo=bar ? or others? This should be: http://site/cgi-bin/oi2.cgi/user/NewUser/?foo=bar We take everything between 'oi2.cgi' and the query string as the PATH_INFO and use that for the actual URL request. (See lines 35-43 of OI2::Request::CGI for the details.) > Standalone: should restart the deamon ? or just leave it? I not yet > test thus, since I wanner my code run under apache with mod_perl. Yes, you'll need to restart the daemon. The quickest development turnaround would be CGI, since it will load and rebuild everything for every request you don't need to worry about reloading. But if you're working on a fast machine restarting an Apache/mod_perl process can be quite quick. My main development machine (P3/1Ghz/512MB) is fast enough to do Apache/mod_perl restarts very often. (And keeping the debugging level at INFO or above helps...) Chris -- Chris Winters (ch...@cw...) Building enterprise-capable snack solutions since 1988. |