Re: About Authenticate Dialog

2003-12-08 Thread Geoffrey Young
Kai wrote: > Hi List, > I am going to write a HTTP authentication by using mod_perl. > Now,if I open this script,the brower will pop a authenticate box. > I want to know,how can I get the id and password that the client inputed in > that authenticate box . > Would someone give any advice ?

Re: About Authenticate Dialog

2003-12-08 Thread Matthew Darwin
In mod_perl 2: sub handler { my ($r) = shift; my ($res, $password) = ($r->get_basic_auth_pw); return $res if $res;#decline if not Basic my $username = $r->user; if ($username eq '') { $r->note_basic_auth_failure; $r->log_error ("no account given for uri=<" .

About Authenticate Dialog

2003-12-08 Thread Kai
Hi List, I am going to write a HTTP authentication by using mod_perl.And I wrote some code like the following: --- #!/usr/bin/perl -w use CGI; my $p=new CGI; print $p->header(-status=>401, -www_authenticate='Basic realm="test area"', -type=>'text/ht

Re: make test errors (modperl 1.99_11 and perl 5.8.2)

2003-12-08 Thread Stas Bekman
Jan Dubois wrote: [...] Hmm, make that: When building mod_perl 1.99 on HP-UX 11 for PA-RISC architecture, using the HP ANSI C compiler, please make sure you have installed patches PHSS_29484 and PHSS_29485. The patches are only available for HP-UX 11.xx, so the version is relevant. I

Re: make test errors (modperl 1.99_11 and perl 5.8.2)

2003-12-08 Thread Jan Dubois
On Mon, 08 Dec 2003 17:24:37 -0800, Stas Bekman <[EMAIL PROTECTED]> wrote: >> Feel free to cut-n-paste or mangle as you see fit. Here is an alternative >> way of putting it: >> >> When building mod_perl 1.99 on HP-UX for PA-RISC architecture 11.00/11.11,using >> the HP ANSI C compiler, pleas

Re: make test errors (modperl 1.99_11 and perl 5.8.2)

2003-12-08 Thread Stas Bekman
Jan Dubois wrote: On Mon, 08 Dec 2003 11:07:59 -0800, Stas Bekman <[EMAIL PROTECTED]> wrote: Jan Dubois wrote: On HP-UX for PA-RISC, version 11.00/11.11 you need to install patch PHSS_29484/PHSS_29485 if you use HP C to compile mod_perl 1.99_11. Interestingly enough, Perl 5.8.2 builds and tes

Re: make test errors (modperl 1.99_11 and perl 5.8.2)

2003-12-08 Thread Jan Dubois
On Mon, 08 Dec 2003 11:07:59 -0800, Stas Bekman <[EMAIL PROTECTED]> wrote: >Jan Dubois wrote: >> On HP-UX for PA-RISC, version 11.00/11.11 you need to install patch >> PHSS_29484/PHSS_29485 if you use HP C to compile mod_perl 1.99_11. >> >> Interestingly enough, Perl 5.8.2 builds and tests fine

Re: mod_perl 1.99_11 test failures on 64 bit HP-UX systems

2003-12-08 Thread Jan Dubois
On Mon, 8 Dec 2003 14:12:38 -0500 , "THELLA,RITA (HP-Cupertino,ex3)" <[EMAIL PROTECTED]> wrote: >Install these two pathes and it should work fine. >PHSS_29484 and PHSS_29485 I don't think so. These patches are only for the PA-RISC architecture and I see the same errors on IPF too. And on IPF I

Re: Newbie: what should I start with?

2003-12-08 Thread Leif K-Brooks
Ged Haywood wrote: You haven't said what OS you're going to be using so I'll assume Linux or something similar. First you should probably upgrade to the latest version of Perl (5.8.2) if you haven't already. I'd recommend that you compile it yourself, as I would all the other tools. Sorry, De

Re: mod_perl 1.x, getting POST'ed content

2003-12-08 Thread Stas Bekman
Andrew Maltsev wrote: On Mon, Dec 08, 2003 at 12:31:59PM -0800, Stas Bekman wrote: Andrew Maltsev wrote: [...] Slurp STDIN before you call CGI->new() into an IO::String object, Can't. I get references to $cgi and $r, that's given. I tried getting filehandle ($r->connection->fileno(0)), rewinding

Re: About function OPEN

2003-12-08 Thread Stas Bekman
Kai wrote: Hi, Thank for your mail. What's the problem? You don't want a user to be able to read files which it Sorry for my bad expression. Users have no shell.They can just upload their html or cgi file via ftp and browse it via http. I want the virtual host's user can only read the file under t

Re: mod_perl 1.x, getting POST'ed content

2003-12-08 Thread Andrew Maltsev
On Mon, Dec 08, 2003 at 12:31:59PM -0800, Stas Bekman wrote: > Andrew Maltsev wrote: > [...] > >>Slurp STDIN before you call CGI->new() into an IO::String object, > > > > > > Can't. I get references to $cgi and $r, that's given. I tried getting > > filehandle ($r->connection->fileno(0)), rewindin

Re: mod_perl 1.x, getting POST'ed content

2003-12-08 Thread Stas Bekman
Andrew Maltsev wrote: [...] Slurp STDIN before you call CGI->new() into an IO::String object, Can't. I get references to $cgi and $r, that's given. I tried getting filehandle ($r->connection->fileno(0)), rewinding it and reading again -- that works in http, but does not in https requests. Can't d

Re: About function OPEN

2003-12-08 Thread Kai
Hi, Thank for your mail. > What's the problem? You don't want a user to be able to read files which it Sorry for my bad expression. Users have no shell.They can just upload their html or cgi file via ftp and browse it via http. I want the virtual host's user can only read the file under their home

Re: mod_perl 1.x, getting POST'ed content

2003-12-08 Thread Andrew Maltsev
On Mon, Dec 08, 2003 at 11:42:43AM -0800, Stas Bekman wrote: > Andrew Maltsev wrote: > > So far I can only see customizing CGI.pm to make it save original > > POST'ed content. > > If Geoff's module doesn't work for you, you could do the following: The application does not use Apache::Registry, it

Re: help, $apr->param hangs

2003-12-08 Thread Stas Bekman
Aleksandr Guidrevitch wrote: I need to see that backtrace in hope to get an idea of what's going on. How to do that ? I started httpd within gdb, then send it a sigint: (gdb) run -X -f /home/ag/development/tauction/conf/httpd.conf Starting program: /usr/local/apache-perl/bin/httpd -X -f /home/a

OraTS: Oracle-based Template System - a new web authoring tool

2003-12-08 Thread Lihn, Steve
Hi, I have developed a new web authoring tool that enables developers to write web sites in Oracle's PL/SQL programming language (the underlying software however is written in mod_perl). This is the first announcement released to the public. If you work in an Oracle centric shop, you might be inter

Re: mod_perl 1.x, getting POST'ed content

2003-12-08 Thread Stas Bekman
Andrew Maltsev wrote: Here is the situation. There is sort of web service (Ariba buyer for those who cares) that posts plain unencoded XML using POST method to a mod_perl 1.x application. Somewhere at the very top the application does use CGI; my $cgi=CGI->new(); and then passes this $cgi referenc

Re: mod_perl 1.99_11 test failures on PA-RISC HP-UX systems

2003-12-08 Thread Stas Bekman
[this is the second part of the report, now in its own thread] > We observe the following mod_perl test failures on HP-UX 11.00 on PA-RISC, > with both HP C and GCC in both 32 bit and 64 bit mode. They are not > present on IPF systems in any of these combinations. > All tests are with Apache 2.0.

Re: mod_perl 1.x, getting POST'ed content

2003-12-08 Thread Geoffrey Young
Andrew Maltsev wrote: > Here is the situation. There is sort of web service (Ariba buyer for > those who cares) that posts plain unencoded XML using POST method to a > mod_perl 1.x application. > > Somewhere at the very top the application does > > use CGI; > my $cgi=CGI->new(); > > and then p

Re: mod_perl 1.99_11 test failures on PA-RISC HP-UX systems: taints issues

2003-12-08 Thread Stas Bekman
Jan Dubois wrote: We observe the following mod_perl test failures on HP-UX 11.00 on PA-RISC, with both HP C and GCC in both 32 bit and 64 bit mode. They are not present on IPF systems in any of these combinations. [...] All tests are with Apache 2.0.48, Perl 5.8.2 and mod_perl 1.99_11, all compile

RE: mod_perl 1.99_11 test failures on 64 bit HP-UX systems

2003-12-08 Thread THELLA,RITA (HP-Cupertino,ex3)
Install these two pathes and it should work fine. PHSS_29484 and PHSS_29485 Thanks, Rita -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 11:16 AM To: Jan Dubois Cc: [EMAIL PROTECTED] Subject: Re: mod_perl 1.99_11 test failures on 64 bit HP-U

mod_perl 1.x, getting POST'ed content

2003-12-08 Thread Andrew Maltsev
Here is the situation. There is sort of web service (Ariba buyer for those who cares) that posts plain unencoded XML using POST method to a mod_perl 1.x application. Somewhere at the very top the application does use CGI; my $cgi=CGI->new(); and then passes this $cgi reference around. Assuming t

Re: mod_perl 1.99_11 test failures on 64 bit HP-UX systems

2003-12-08 Thread Stas Bekman
Jan Dubois wrote: We are observing the attached test failures on 64 bit HP-UX systems. They happen on both PA-RISC and IPF systems. I compiled Apache 2.0.48, Perl 5.8.2 and mod_perl 1.99_11 both with the HP ANSI C compiler and with GCC. The errors are always the same. They don't appear in 32 bit

Re: make test errors (modperl 1.99_11 and perl 5.8.2)

2003-12-08 Thread Stas Bekman
Jan Dubois wrote: On Thu, 04 Dec 2003 12:03:34 -0800, Stas Bekman <[EMAIL PROTECTED]> wrote: THELLA,RITA (HP-Cupertino,ex3) wrote: After installing HP-c patches, make test is working fine. Great. What're HP-c patches? On HP-UX for PA-RISC, version 11.00/11.11 you need to install patch PHSS_294

Re: Memory Leak

2003-12-08 Thread Stas Bekman
Pringle, Chris (HP-PSG) wrote: Hi All, Anyone experience problems with filters and large files? I tried to download a 650MB ISO image through my proxy with a filter enabled and it caused the box to run out of memory, thrash and eventually panic. Its a stream based output filter that sits in a loo

Re: About function OPEN

2003-12-08 Thread Stas Bekman
Kai wrote: Hi list. I use Apache2.0+mod_perl_1.99+PHP on my server. I want to lend web space to user.But I found a big problem which I don't know how to resolve it. for example , user test1's home directory is /home/test1,he can't access other directories or files via ftp. but ,if he uploads a

Re: Newbie: what should I start with?

2003-12-08 Thread Ged Haywood
Hi Stas, On Mon, 8 Dec 2003, Stas Bekman wrote: > Ged Haywood wrote: > [...] > > Assuming you're going for mod_perl, the first decision to be made is > > whether to use version 1 or version 2. Both versions of Apache are > > stable but mod_perl version 2 (or 1.99_xx as it's often known) is > > s

Re: Newbie: what should I start with?

2003-12-08 Thread Stas Bekman
Ged Haywood wrote: [...] Assuming you're going for mod_perl, the first decision to be made is whether to use version 1 or version 2. Both versions of Apache are stable but mod_perl version 2 (or 1.99_xx as it's often known) is still in the early stages of its development so you may not want to get

Re: [mp2] libgd (and freetype) problem with ModPerl::Registry

2003-12-08 Thread Stas Bekman
Randy Kobes wrote: [...] This produce white image without any text and /tmp/testlog contain: libgd was not built with FreeType font support Where the problem can be? What should I do? help me... Some more information what can be useful: # ldd /usr/lib/libgd.so libjpeg.so.62 => /usr/lib/libj

Re: dynamic paths?

2003-12-08 Thread Stas Bekman
Dt wrote: is there some easy setup that i can do to allow for a dynamic path in a uri? for example, id like to have the ability to have some configuration file, say uri_path.txt and list multiple paths in the form of: # my.paths /path1 /path2/target /path3/target1 ... and be able to change thi

Re: APR::URI->parse question

2003-12-08 Thread Stas Bekman
Enrico Sorcinelli wrote: Hi all, I'm porting to mp2 this mp1 code: use Apache::URI; my $uri = Apache::URI->parse($r); # now I can work with $uri->hostinfo, $uri->scheme, etc In mp2, 'parse' method has moved from Apache::URI to APR::URI. Moreover the method syntax is changed: APR::URI->parse($r->poo

Re: [mp2] 3rd-party module porting status

2003-12-08 Thread Stas Bekman
Enrico Sorcinelli wrote: [...] 3. The report is strictly tied to description in Changes distribution files True. But this can be polished with time. [...] That's where META.yml kicks in. I'm not sure which tag can we use though. http://module-build.sourceforge.net/META-spec.html but eventually tha

should we be using tempnam() ?

2003-12-08 Thread Brian Hirt
i think that libapreq shouldn't be using tempnam()It frustraiting that you can't force tempnam to use a given directory via some sort of api. this makes the TEMP_DIR argument to Apache::Request behave inconsistently depending on what environment variables may or may not be set. If you t

Memory Leak

2003-12-08 Thread Pringle, Chris (HP-PSG)
Hi All, Anyone experience problems with filters and large files? I tried to download a 650MB ISO image through my proxy with a filter enabled and it caused the box to run out of memory, thrash and eventually panic. Its a stream based output filter that sits in a loop doing $f->read(...). Even wh

Re: help, problems on migrating to mod_perl

2003-12-08 Thread Randy Kobes
On Mon, 8 Dec 2003, SRef wrote: > "Randy Kobes" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > On Fri, 5 Dec 2003, SRef wrote: > > > > > Env: Perl5.8 Apache2.0 mod_perl2.0(1.99xx?) PS: I did try > > > to find the solution through mod_perl and apache > > > documents, but in vain.

About function OPEN

2003-12-08 Thread Kai
Hi list. I use Apache2.0+mod_perl_1.99+PHP on my server. I want to lend web space to user.But I found a big problem which I don't know how to resolve it. for example , user test1's home directory is /home/test1,he can't access other directories or files via ftp. but ,if he uploads a simple scr

Re: [mp2] libgd (and freetype) problem with ModPerl::Registry

2003-12-08 Thread Randy Kobes
On Sun, 7 Dec 2003, Kaiko Kaur wrote: > > Hi, > > I made perl CGI script which makes png files on the fly > (using GD.pm). Everything was ok until I wanted to run it > with ModPerl::Registry (to get it faster). > > Here is script (mkpng.cgi): > #!/usr/bin/perl > use GD; > binmode STDOUT; > $p = new

Re: How to get username and password with mod_perl?

2003-12-08 Thread Geoffrey Young
Charlie Smith wrote: > Guess I'm talking to myself on this one. I'll change the subject and try > again. Please let me clarify. I need to grab the user's username and > password in order to send an http request out to a protected site. The > site happens to be the same one the LWP request is b

Re: How to get username and password with mod_perl?

2003-12-08 Thread Ged Haywood
Hi there, On Mon, 8 Dec 2003, Charlie Smith wrote: > Guess I'm talking to myself on this one. Maybe the wrong list... :) > I need to grab the user's username and password The facilities offered by mod_perl are more concerned with providing a general-purpose facility to assist Apache in serving

Re: Newbie: what should I start with?

2003-12-08 Thread Ged Haywood
Hi there, On Mon, 8 Dec 2003, Leif K-Brooks wrote: > I'm thinking about starting a new web project in Perl, and I'm not sure > what to use: You haven't said what OS you're going to be using so I'll assume Linux or something similar. First you should probably upgrade to the latest version of Pe

How to get username and password with mod_perl?

2003-12-08 Thread Charlie Smith
Guess I'm talking to myself on this one. I'll change the subject and try again. Please let me clarify. I need to grab the user's username and password in order to send an http request out to a protected site. The site happens to be the same one the LWP request is being sent from, so I can use

Newbie: what should I start with?

2003-12-08 Thread Leif K-Brooks
I'm thinking about starting a new web project in Perl, and I'm not sure what to use: Apache::Registry, or something else? I don't have any existing CGI scripts to port, so I only care about ease of use, power, and speed. -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://per

mod_perl 1.99_11 test failures on PA-RISC HP-UX systems

2003-12-08 Thread Jan Dubois
We observe the following mod_perl test failures on HP-UX 11.00 on PA-RISC, with both HP C and GCC in both 32 bit and 64 bit mode. They are not present on IPF systems in any of these combinations. Failed Test Total Fail Failed List of Failed

mod_perl 1.99_11 test failures on 64 bit HP-UX systems

2003-12-08 Thread Jan Dubois
We are observing the attached test failures on 64 bit HP-UX systems. They happen on both PA-RISC and IPF systems. I compiled Apache 2.0.48, Perl 5.8.2 and mod_perl 1.99_11 both with the HP ANSI C compiler and with GCC. The errors are always the same. They don't appear in 32 bit mode at all. TJ

Re: make test errors (modperl 1.99_11 and perl 5.8.2)

2003-12-08 Thread Jan Dubois
On Tue, 02 Dec 2003 16:22:05 -0800, Stas Bekman <[EMAIL PROTECTED]> wrote: >p.s. I didn't know you had to use ActivePerl for HP-UX. Doesn't the plain >build work there? Note that the default Perl in /opt/perl and /opt/perl_64 on HP-UX *is* ActivePerl, at least on machines shipped in the last yea