How do I handle an XML document sent as a POST [newbie]

2002-10-22 Thread Chris Pizzo
I'm trying to figure out how to get the XML document sent to me in a An HTTP transmission. The example I'm given is: HTTP headers: POST HTTP/1.0 Content-type: text/xml; charset=UTF-8 Content-length: 1862 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 User-Agent: Java1.1 Host:

special characters - html entities

2002-10-22 Thread allan
hi i have some troubles with scandinavian characters in form input fields. i wish to translate (or subsitute rather) the special ones into their html enitity before they are put in a database. something like: ... my %params = $r-method eq 'POST' ? $r-content : $r-args; my $name =

Re: special characters - html entities

2002-10-22 Thread Arshavir Grigorian
Have you tried using the HTML::Entities module? Good luck. Arsh On Tue, 22 Oct 2002 21:49:00 +0200 allan [EMAIL PROTECTED] wrote: hi i have some troubles with scandinavian characters in form input fields. i wish to translate (or subsitute rather) the special ones into their html

Re: How do I handle an XML document sent as a POST [newbie]

2002-10-22 Thread Larry Leszczynski
Hi Chris - On Tue, 22 Oct 2002, Chris Pizzo wrote: I'm trying to figure out how to get the XML document sent to me in a An HTTP transmission. The example I'm given is: You can read the POST content directly in your mod_perl handler, e.g.: sub handler { my $r = shift; my $content;

Where do you specify APR::HOOK...

2002-10-22 Thread Erich Oliphant
Hi, I am trying to place a handler at the end of the list of PerlLogHandler's. I know I want to use APR::HOOK_REALLY_LAST but I'm not sure how or where to specify it for my handler. I tried "PerlLogHandler My::Handler APR::HOOK_REALLY_LAST" in the httpd.conf file w/ no success. Should it be

Problems writing binary uploaded data...

2002-10-22 Thread Leif Snorre Schøyen Boasson
I'm trying to save an uploaded binary file (a jpg) through a perlscript. The code doing this looks like: if (open OUTFILE, /var/www/tmp/test.jpg){ binmode $ULFILE, :raw; binmode OUTFILE, :raw; while ($sizeread=read($ULFILE, $buffer, 1024)) { print OUTFILE

AuthCookie questions

2002-10-22 Thread Christian Gilmore
I'm considering use of Apache::AuthCookie in my environment. Here's the problem I need to solve. I'm not certain if AuthCookie will, without modification, support my needs. 1. Authentication cookies are doled out from a centralized server that is out of my control and cannot be modified to

Re: Problems writing binary uploaded data...

2002-10-22 Thread Leif Snorre Schøyen Boasson
Well, the original reason I didn't use that was I didn't know what linking it was used for... (so much for RTFM... :) ). However, my /tmp (which Apache is using as it's tmp-directory) is on its own partition, so I cant really link it anywhere else but /tmp, which is not exactly where I'd like it

[Apache::AuthenNTLM] Performance Probs

2002-10-22 Thread Frank . Zimper
Hello, I recently installed Apache::AuthenNTLM 0.21 on a Solaris 8 box running Apache 1.3.26 with mod_perl. The trouble is now that the response times are sometimes very slow, up to several tens of seconds. They are faster with non-NTLM-browsers like Mozilla, in this case it's only the first

Re: AuthCookie questions

2002-10-22 Thread Michael Schout
Christian Gilmore wrote: 4. I cannot modify the cookie and should not send additional cookies. [snip] about 4. Can I use an unmodified AuthCookie to ensure that whatever format the inbound cookie is in is sufficient and will not need to be modified or supplemented? I believe the answer is

FYI: MySQL default max_connections

2002-10-22 Thread Bas A . Schulte
Hi all, just recovering from a major spike on our MySQL server and thought I'd share something *I* didn't know... We got a db box with MySQL on it and 2 (mod_perl) webservers on separate boxes, the mod_perl servers have MaxClients set to 160 for one machine and 40 for the other. Now we had a

Prevision

2002-10-22 Thread Udlei Nattis
when will be finished modperl2? bye nattis

protecting and entire site with AuthCookie and its derivatives?

2002-10-22 Thread George Valpak
Is it possible to protect an entire site, from DocumentRoot, using AuthCookie? I have tried to configured it today, using my subclass of AuthCookieDBI: - If I have all of the protected files in Location blocks under Document root, all is fine. - If I try to protect Location /, then it appears

RE: AuthCookie questions

2002-10-22 Thread Christian Gilmore
Hi, Michael. Let me try again with more specifics. I'm required to mash my service into another organization's authentication scheme, ditching my own secure methods for their cross-domain unencrypted, unsigned cookie. 1. Foreign server, foreign.foo.com, presents a form to a user requesting

Re: AuthCookie questions

2002-10-22 Thread Perrin Harkins
Christian Gilmore wrote: Hi, Michael. Let me try again with more specifics. I'm required to mash my service into another organization's authentication scheme, ditching my own secure methods for their cross-domain unencrypted, unsigned cookie. [...] On a side note, if anyone finds the proposed

Re: protecting and entire site with AuthCookie and its derivatives?

2002-10-22 Thread Michael Schout
George Valpak wrote: Is it possible to protect an entire site, from DocumentRoot, using AuthCookie? Yes. I've never done this myself personally, but people have reported success doing this. The trick is to configure apache so that your LOGIN handler is not inside the authentication realm.

Re: AuthCookie questions

2002-10-22 Thread Michael Schout
Christian Gilmore wrote: 1. Read data from existing cookie. 1a. Redirect if cookie is non-existent. 2. Accept or reject cookie. 2a. If rejected, redirect. 2b. If accepted, populate environment and return. Sounds to me like you really dont need AuthCookie at all. You could just as

Re: AuthCookie questions

2002-10-22 Thread Peter Bi
check here http://modperl.home.att.net Peter - Original Message - From: Christian Gilmore [EMAIL PROTECTED] To: 'Michael Schout' [EMAIL PROTECTED] Cc: 'Modperl Mailing List (E-mail)' [EMAIL PROTECTED] Sent: Tuesday, October 22, 2002 12:13 PM Subject: RE: AuthCookie questions Hi,

Re: [Apache::AuthenNTLM] Performance Probs

2002-10-22 Thread Gerald Richter
Hello, I recently installed Apache::AuthenNTLM 0.21 on a Solaris 8 box running Apache 1.3.26 with mod_perl. The trouble is now that the response times are sometimes very slow, up to several tens of seconds. They are faster with non-NTLM-browsers like Mozilla, in this case it's only the first

Re: Memory leak on reload when the 'Pg' driver is preloaded

2002-10-22 Thread Vivek Khera
KGM == Keith G Murphy [EMAIL PROTECTED] writes: KGM When using a modular mod_perl, I get a huge leak if I preload the 'Pg' KGM driver in my startup perl script thus: Hmmm. Interesting theory. I shall have to investigate it. I also see a multi-megabyte memory leak in my app when DBD::Pg is