Re: init in Apache::ASP

2000-09-08 Thread Dmitry Beransky
>At 03:59 PM 9/8/00, G.W. Haywood wrote: >Try to think of it as a program. You can't use the variable's value >until you've set it. Why does it matter where it goes in the page? Not exactly true for Perl, is it? -- the BEGIN subroutine comes to mind. What follows is just a speculation on my

Re: XML::XPath in APache::ASP -> doesn't work

2000-08-28 Thread Dmitry Beransky
>I'm still using good ol' 5.005 :) I just tried your Debug=1 suggestion >(BTW, it doesn't appear to be documented in XML::XPath) and the output >seems identical for both the ASP and the "offline" versions of the >script. I guess I'll have to dive into XPath internals and place a few >trace stat

Re: XML::XPath in APache::ASP -> doesn't work

2000-08-28 Thread Dmitry Beransky
> I don't know why its working on the command line and not in your web > page. Seems very odd to me. Have you tried setting $XML::XPath::Debug=1 > and seeing if that shows anything suspect (expect LOTS of stuff to come > out). Also note that XML::XPath doesn't work with Perl 5.6 yet. I'm > uploadi

Re: XML::XPath in APache::ASP -> doesn't work

2000-08-28 Thread Dmitry Beransky
> Why don't you use XMLSubs to catch the data with a custom > tag, and then process the data with XPath... you could register > the data in a global, and then process it later in your script > if you like? It just killed me to see this kind of construct > in an ASP script: Actually, that's exact

XML::XPath in APache::ASP -> doesn't work

2000-08-27 Thread Dmitry Beransky
Hi, Well, it's not that it doesn't work, rather I can't get it work and this has been driving me nuts for two weeks (on and off). I must be missing something obvious, but I can't figure out what it is. Anyway, here's the problem: When the following asp is executed, it reports the size of the n

Apache::ASP & the case of disappearing prolog

2000-08-07 Thread Dmitry Beransky
Consider the following markup: <%@language="PerlScript"%> <% my $prolog= ' ]>'; %> Prolog: <%=$Server->HTMLEncode($prolog)%> when I run this, the XML declaration is missing in the output. I think this is somehow related to the XMLSubsParser. Not sure if m

XForms & ASP (was: The Template Toolkit )

2000-07-31 Thread Dmitry Beransky
't look like I have any runaway strings, so any idea what gives? Thanks Dmitry At 09:01 PM 7/29/00, Joshua Chamas wrote: >If you could tell me more about this sometime, like where you >are going with this, and how this might be brought into the >server to ease developer use that would b

RE: The Template Toolkit (Re: Templating Systems)

2000-07-28 Thread Dmitry Beransky
At 09:58 AM 7/24/00, mgraham wrote: >For instance, I would like a backend web application to be able to >learn about form fields from the template tags: > > [% input type='text' name='email' required=1 >validate_as='email_address' %] That's where the XForm may come quite handy (

Re: Apache::ASP Error

2000-07-23 Thread Dmitry Beransky
The error is in your simple asp page on line 66. Most likely you forgot to put '$' in front of a variable. Dmitry On Sun, 23 Jul 2000, Hans Fuchs wrote: > Hello, > > I installed Apache::ASP. When test with a simple asp page. I got an > internal server error and the error_log says: > >

Re: Apache::ASP+

2000-07-20 Thread Dmitry Beransky
At 10:56 AM 7/20/00, you wrote: >See this link > >http://www.asptoday.com/articles/2712.htm Very interesting (now I want to buy the enitre book and see what else is in there). There are some aspects of the new ASP I really like especially those targeted at improvements of the workflow (cont

Re: Apache::ASP and post-POST redirect

2000-07-07 Thread Dmitry Beransky
A redirect at the top of your >scripts should likely not need the clear, which is >how I tend to use it. Note with the latest release >there is also a $Server->Transfer() which is faster >than a redirect, and maybe useful for your needs. > >[...] > >> >>Dmitry

Apache::ASP and HEAD

2000-07-05 Thread Dmitry Beransky
Hi, I remember seen the answer to this some time ago (I may have even asked this myself), but I couldn't find it in the archives. Can anyone remind me why Apache::ASP includes a message body in reply to a HEAD request? Thanks a lot Dmitry --- Dmitry Beransky System Analyst Universi

Apache::ASP and Apache request object

2000-06-16 Thread Dmitry Beransky
Dmitry At 12:38 PM 10/7/99, Joshua Chamas wrote: >Dmitry Beransky wrote: > > > > Thanks Joshua, > > > > Sigh, I guess I have to redesign my code. It hadn't even occurred to me > > that ASP's session management may not be available outside of ASP. It's a &

Re: Apache::ASP & HTTP's validation model

2000-02-14 Thread Dmitry Beransky
But meets_condition is a file specific API and will not work for data coming from a database or a subrequest, etc. Dmitry At 01:08 AM 2/14/00, Matt Sergeant wrote: >Isn't this handled by meets_condition? > >On Mon, 14 Feb 2000, Joshua Chamas wrote: > > What if it were just an Apache routine, li

Re: Apache::ASP & HTTP's validation model

2000-02-14 Thread Dmitry Beransky
The immediate problem I see with this approach, is that $Response->LastModified() can only be called once per request. Consider a situation when a single asp file has multiple includes and each include is generated from a separate datasource. In this case, each include has to report back wit

Re: Apache::ASP & HTTP's validation model

2000-02-11 Thread Dmitry Beransky
(Joshua, promise to let me know when you get tired of my "ideas" and I'll stop :-) >No, this wouldn't make sense for most scripts which will >contain dynamic parts. What about a situation when the content is been dynamically generated from a source that doesn't change often, but in an unpredic

Apache::ASP & HTTP's validation model

2000-02-11 Thread Dmitry Beransky
Hi, Having searched through the documentation, source code and the archives I found no references to how Apache::ASP works with the validation model. I'm primarily talking about handling the 'Last-Modified' and 'If-Modified-Since' headers. Does it at all? Cheers D

Apache::ASP and PerlSetVar

2000-02-09 Thread Dmitry Beransky
Hi, Is there any way to get to PerSetVar values from ASP? I have a few configuration items that I need to access from both ASP pages and handlers. I'd hate to replicate the same data in two different places: httpd.conf and global.asa. Thanks Dmitry

ASP->Loader result in 'Attempt to free non-existent shared...'

2000-01-17 Thread Dmitry Beransky
Hi again, folks, Last Saturday after manually relinking SDBM_File with a reference to mod_perl libperl.so, I was able to preload Apache::ASP and precompile the asp scripts from startup.pl without any segfaults. This however, resulted in a different problem. I didn't notice it right away (do

Re: Apache::ASP: crash when placed in startup.pl

2000-01-14 Thread Dmitry Beransky
talked about in my >last message - could you try exporting LD_PRELOAD=/path/to/modperl.so? > >(I'm guessing from context that you're using a DSO - apologies for the >non-sequitor if I'm wrong, I just got back on the list). > >On Fri, Jan 14, 2000 at 05:57:49PM -0800,

Re: Apache::ASP: crash when placed in startup.pl

2000-01-14 Thread Dmitry Beransky
>I don't know about this, are you sure you copied over your >new modperl httpd to /usr/local/apache after the build, >and did a full stop / start, this is a common step overlooked >by the best of us. Yes, I'm using the new build. I've compiled perl with debugging turned on and now gdb shows ex

Re: Apache::ASP: crash when placed in startup.pl

2000-01-14 Thread Dmitry Beransky
>This might be yet another RedHat problem ... have you tried >rebuilding your perl / mod_perl from scratch. Out of curiosity >really, because I think you should still rebuild stuff, >does SDBM_File load fine, if not being preloaded ? Well, I just finished recompiling perl and mod_perl, but the

Re: Apache::ASP: crash when placed in startup.pl

2000-01-14 Thread Dmitry Beransky
>This might be yet another RedHat problem ... have you tried >rebuilding your perl / mod_perl from scratch. Out of curiosity >really, because I think you should still rebuild stuff, >does SDBM_File load fine, if not being preloaded ? Well, I just finished recompiling perl and mod_perl, but the

Re: Apache::ASP: crash when placed in startup.pl

2000-01-14 Thread Dmitry Beransky
1:26 PM 1/14/00 , Joshua Chamas wrote: >This might be yet another RedHat problem ... have you tried >rebuilding your perl / mod_perl from scratch. Out of curiosity >really, because I think you should still rebuild stuff, >does SDBM_File load fine, if not being preloaded ? >Dmitry Beransky

Re: Apache::ASP: crash when placed in startup.pl

2000-01-14 Thread Dmitry Beransky
ly, I have no idea where to go from here. Any suggestions? > >Thanks >Dmitry Beransky >

Apache::ASP: crash when placed in startup.pl

2000-01-14 Thread Dmitry Beransky
perl5/5.00503/i386-linux/auto/SDBM_File/SDBM_File.so (gdb) Quite frankly, I have no idea where to go from here. Any suggestions? Thanks Dmitry Beransky

Re: Apache::ASP internal.lock error

2000-01-11 Thread Dmitry Beransky
day of classes here at the university and it got hit hard. I guess I should have tested it better. Well, back to the drawing board (er, testing board :)... Dmitry On Tue, 11 Jan 2000, Joshua Chamas wrote: > Dmitry Beransky wrote: > > > > Hi, > > > > A few hours ago,

Apache::ASP internal.lock error

2000-01-11 Thread Dmitry Beransky
Hi, A few hours ago, my server started threashing and I had to restart httpd. When I looked at the error log, it was full of messages like those few below. Any ideas what might have caused this? Regards Dmitry Beransky ... [Tue Jan 11 19:24:50 2000] [error] [asp] [4926] [error] Can't u

mod_perl and mod_speling

1999-12-30 Thread Dmitry Beransky
Hi, I doesn't seem like mod_speling works well with mod_perl. Has anyone ported it to a mod_perl module? Cheers

Re: mod_perl and Mac OS X Server

1999-12-23 Thread Dmitry Beransky
> > Oh, yeh, I had fought mod_perl on MOSX long and hard and did finally > > win...only to switch to linux a month later. > > I wish I could ;) I wish I didn't have to, but I found Apache/mod_perl combination on MOSX to be very unstable. And been new to Perl, Apache, mod_perl, MOSX and unix in

Re: trouble reading query string

1999-12-22 Thread Dmitry Beransky
At 11:52 AM 12/22/99 , Ken Y. Clark wrote: >so it now works, but i feel kinda dirty. and here's the last bit of >strangeness: i have another page that is generated in the same manner >that works just fine. the only difference is that the perl sub generates >a form that is *not* enctype="multip

Re: mod_perl and Mac OS X Server

1999-12-22 Thread Dmitry Beransky
Oh, yeh, I had fought mod_perl on MOSX long and hard and did finally win...only to switch to linux a month later. anyway, here's what you need to do: 1. if you haven't installed the sources off the Developer CD, do so now. 2. in /System/Library/Perl/rhapsody/Config.pm remove all occurrences of

RE: mod_perl and proxying

1999-12-20 Thread Dmitry Beransky
At 08:39 PM 12/19/99 , Gerald Richter wrote: >Then you have to go the other way around and avoid calls to mod_perl for >proxy request at all, by putting it inside a block, which will >not That's pretty much what I ended up doing: I moved the rewrite rules to the front server that runs without

Re: Apache::Scoreboard - problem compiling

1999-12-20 Thread Dmitry Beransky
At 11:29 PM 12/19/99 , Stas Bekman wrote: >What happens when you build mod_perl as static? What do you see it: >/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache Yep. Compiling mod_perl as static did the trick. I guess, USE_APXS doesn't install all the files. Thank you for your help Dmitr

Re: Apache::Scoreboard - problem compiling

1999-12-20 Thread Dmitry Beransky
> I didn't try USE_APXS for a long time, may be it's broken. Someone who > uses USE_APXS can confirm that? If it helps, here's a transcript of 'make install.' I'll try compiling within Apache's source tree tomorrow. Thanks Dmitry [dmitry@bio-york ~/mod_perl-1.21]# make install (cd ./apaci &&

Re: Apache::Scoreboard - problem compiling

1999-12-19 Thread Dmitry Beransky
Doh! I recompiled apache from scratch, but I totally forgot about mod_perl :). Recompiling mod_perl didn't help however. I used the USE_APXS option, and nothing new got moved into i386-linux/auto/Apache tree. Should I have compiled mod_perl inside apache's source tree? Thanks Dmitry At 01:

Apache::Scoreboard - problem compiling

1999-12-17 Thread Dmitry Beransky
Hi folks, I'm not strong in XS, so I hope someone will land me a helping hand figuring this out :) Here's an error I get compiling Apache::Scoreboard (0.08): /usr/bin/perl -I/usr/lib/perl5/5.00503/i386-linux -I/usr/lib/perl5/5.00503 /usr/lib/perl5/5.00503/ExtUtils/xsubpp -typemap /usr/lib/p

Re: 'var' instead of var ... (getting crazy)

1999-12-16 Thread Dmitry Beransky
Hi Andrea, Have you looked at ? This may not answer your question directly, but at least may give you some ideas on how to approach the problem... Cheers Dmitry At 10:05 AM 12/16/99 , Andrea Brugiolo wrote: >

RE: mod_perl and proxying

1999-12-15 Thread Dmitry Beransky
Just tried it; didn't help. The error message is still there. Is it possible that the proxy setup is somehow screwed up? I checked and rechecked and everything seems fine: mod_proxy is loaded, ProxyRequests is turned on. I can't think of anything else to check. Regards Dmitry At 12:37 PM 1

mod_perl and proxying

1999-12-15 Thread Dmitry Beransky
Hi all, On my system I have a global PerlHandler module that processes all incoming requests. Within itself, the module filters out requests that are not of particular MIME types or requests containing '/resources/' in their uris and lets them to be processed by their intended handlers (by re

POST, read() and UNSUPPORTED_MEDIA_TYPE

1999-12-09 Thread Dmitry Beransky
my $data; warn( 'Reading in: '.$r->header_in('Content-length').' bytes' ); $r->read( $data, $r->header_in('Content-length') ); $r->method("GET"); $r->method_number(M_GET); $r->headers_in->unset("Cont

Re: where is HTTP_MULTIPLE_CHOICES?

1999-12-09 Thread Dmitry Beransky
I should always wait 'till morning to ask stupid questions... I just found the answer in the Eagle book, Ch.9, the Apache::Constants section (doh!): the constants that are not exported by default, can be accessed with Apache::Constants::(). At 05:22 PM 12/8/99 , Dmitry Beransky wrote

where is HTTP_MULTIPLE_CHOICES?

1999-12-08 Thread Dmitry Beransky
Hi, I'm sorry, this is probably a stupid question, but I've search everything I could think of and still can figure out where HTTP_MULTIPLE_CHOICES constant is defined. It's definitely not in Apache::Constants::Exports Any thoughts, did I miss something? Regards Dmitry

Re: internal_redirect and POST

1999-10-27 Thread Dmitry Beransky
ubmissions could be huge transactions even without a file upload. > > Dmitry Beransky <[EMAIL PROTECTED]> writes: > > > My apologies for continuing this topic, but I've been thinking some more > > about this issue over the weekend. I'm still perplexed by this

Re: Apache::ASP, catching redirect from a downstream filter

1999-10-20 Thread Dmitry Beransky
Joshua, The new version works. Turns out, I also need to call $r->status before $r->filter_input, as the latter resets the status code back to 200. Thanks. Dmitry >That's because $r->status() wasn't being set by $Response->Redirect(), >just $r->header_out('Location'). In my dev version, I ha

Apache::ASP, catching redirect from a downstream filter

1999-10-19 Thread Dmitry Beransky
can't find the proper return code. Where should I be looking? Thanks --- Dmitry Beransky Programmer/Analyst University of California, San Diego Multimedia Interactive Learning Lab (http://mill.ucsd.edu)

Apache::Session. Why Apache? Why Session?

1999-10-14 Thread Dmitry Beransky
age (memory, FS, DB, etc.). A complete Apache-based session managing mechanism (with session initialization, destruction, auto-expiration, etc.) still has to be coded on top of it. Any comments? Shouldn't it be renamed? Regards Dmitry Beransky

Re: Apache::Session and auto-expiration

1999-10-14 Thread Dmitry Beransky
Folks, My apologies and please disregard my previous post. I just realized (with help from Andy Pruitt) that what I saw were the remnants of the old Apache::Session. The new Apache::Session doesn't implement auto-expiration. Sorry for the mixup. Dmitry At 02:13 PM 10/13/99 , D

Apache::Session and auto-expiration

1999-10-13 Thread Dmitry Beransky
Hi, I've been trying to figure out how auto-expiration works in the new version on Apache::Session. After going through the code of IPC.pm, I think I got the idea, but still it would be nice if this was documented somewhere. I don't think it is. Is it? Regards --- Dmitr

RE: syntax error parsing httpd.conf

1999-10-12 Thread Dmitry Beransky
Thanks Jeff and Doug! Both of your were right after all. The culprit was indeed, /dev/null. I'm not a unix guy, so it took me a while to track this problem down. It turned out that for some reason, the system didn't see /dev/null as a character device, plus the permissions were screwed up.

RE: internal_redirect and POST

1999-10-11 Thread Dmitry Beransky
My apologies for continuing this topic, but I've been thinking some more about this issue over the weekend. I'm still perplexed by this seemingly arbitrary limitation on the number of times a request body can be read. It seems that, at least theoretically, it should be possible to cache the

Re: internal_redirect and POST

1999-10-08 Thread Dmitry Beransky
Yes, I'm with Andrei on this. All I want to do is to peek at the content been passed and redirect the request based on what's in it. I did see Doug's snippet in the archives, but I decided it didn't apply to me as it still wasn't offering a way to retain the content. This limitation of calli

internal_redirect and POST

1999-10-07 Thread Dmitry Beransky
x27;m trying to see if I can detect which button was used to submit a form and redirect the request to a corresponding url. My current restraints are: 1) the form must be POSTed; 2) this process must be transparent to the user, which means that I need to use internal redirects. Thanks in advanc

Re: Apache::ASP, Sessions and content handlers

1999-10-07 Thread Dmitry Beransky
At 12:38 PM 10/7/99 , Joshua Chamas wrote: >If you don't need these event handlers, then you could use >Apache::Session very well for you needs, as well as ASP $Session, >then you can turn sessions off in ASP, and set $Session >to an Apache::Session like: You're right, I don't currently need even

Re: Apache::ASP, Sessions and content handlers

1999-10-07 Thread Dmitry Beransky
Thanks Joshua, Sigh, I guess I have to redesign my code. It hadn't even occurred to me that ASP's session management may not be available outside of ASP. It's a shame, though, to have use two different code bases to do essentially the same task. What would be nice if all of ASP's session st

Apache::ASP, Sessions and content handlers

1999-10-06 Thread Dmitry Beransky
d issue an internal_redirect to it based on data stored in the $Session object. Is this possible? Maybe I've been at it for to long, but I can't figure out how to access the ASP::Session object from a content handler. Thanks --- Dmitry Beransky Programmer/Analyst University of California,

Re: syntax error parsing httpd.conf

1999-10-04 Thread Dmitry Beransky
broken. >try: > >% sudo echo > /dev/null > >On Wed, 15 Sep 1999, Dmitry Beransky wrote: > > > Hi, > > > > My apache/mod_perl combo had been running just fine until yesterday when > > all of a sudden (I can't recall making any changes to the setup) al