Re: Getting data from external URL

2000-08-25 Thread Rob Tanner
Apache::Request simply maps the Apache object into an Apache::Request object (I know that sounds like double-speak, but it's late), and adds some extra methods. I don't think that's what Vijay's original question is all about. What's needed is an HTTP::Request object. Look at LWP::UserAgent

Re: Getting data from external URL

2000-08-25 Thread Yann Ramin
If you're in a modperl enviroment, and don't use CGI.pm, try using Apache::Request (I'm not a fan of using Apache.pm for too much). Has anyone ever considered making a wrapper for all the modules which get back data from the request (roll Apache::Request, Apache::Cookie, etc, into one)? Seems tr

Missing src/include/alloc.h ?

2000-08-25 Thread George Sanderson
Please ignore my previous message, I let this message go out to the wrong mailing list. I down loaded the CVS file apache-1.3_2825041201.tar.gz and attempted a make, that included: --add-module=/usr/src/mod_layout-2.3/mod_layout.c It expects src/include/alloc.h I noticed that this header fil

Missing src/include/alloc.h ?

2000-08-25 Thread George Sanderson
I down loaded the CVS file apache-1.3_2825041201.tar.gz and attempted a make, that included: --add-module=/usr/src/mod_layout-2.3/mod_layout.c It expects src/include/alloc.h I noticed that this header file was included in the apache_1.3.12 distribution. Is the file missing?

Getting data from external URL

2000-08-25 Thread Vijay
Hello, I want to get data from an external url in my perl program (either thru Embperl Execute or directly from perl). What I need is like this. There is a URL which gives some information in text format. I want to get that into a variable or file using perl and using my own html templates, I wa

Re: Patch to t/modules/request.t

2000-08-25 Thread Rick Myers
On Aug 25, 2000 at 21:25:59 -0400, Rick Myers twiddled the keys to say: > On Aug 25, 2000 at 21:02:32 -0400, Billy Donahue twiddled the keys to say: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > On Fri, 25 Aug 2000, Rick Myers wrote: > > > > > From: Rick Myers <[EMAIL PROTECTED]>

Module Function Name Issue

2000-08-25 Thread Philip Molter
I have a module with some code like this: package Object; sub new {

Re: Patch to t/modules/request.t

2000-08-25 Thread Rick Myers
On Aug 25, 2000 at 21:02:32 -0400, Billy Donahue twiddled the keys to say: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Fri, 25 Aug 2000, Rick Myers wrote: > > > From: Rick Myers <[EMAIL PROTECTED]> > > > > On Aug 24, 2000 at 23:15:15 -0500, Ken Williams twiddled the keys to say: >

Re: Patch to t/modules/request.t

2000-08-25 Thread Billy Donahue
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 25 Aug 2000, Rick Myers wrote: > From: Rick Myers <[EMAIL PROTECTED]> > > On Aug 24, 2000 at 23:15:15 -0500, Ken Williams twiddled the keys to say: > > [EMAIL PROTECTED] (Rick Myers) wrote: > > > > > >+++$lines while defined ; > > > > T

Re: Patch to t/modules/request.t

2000-08-25 Thread Rick Myers
On Aug 24, 2000 at 23:15:15 -0500, Ken Williams twiddled the keys to say: > [EMAIL PROTECTED] (Rick Myers) wrote: > >On Aug 24, 2000 at 01:15:57 -0500, Ken Williams twiddled the keys to say: > >> The following patch eliminates a warning during 'make test' about 'Value > >> of construct can be "0"

Re: GET request size

2000-08-25 Thread Devin Ben-Hur
Alex Menendez wrote: > is there any limit to the size of a GET request url when it is generated > from inside a mod_perl module? I have a POST cgi coming in with a bunch of > data and I would like to turn it into a GET url so I can effectively use > lookup_uri and run from the Apache::SubRequest c

[JOB] mod_perl eng. cool startup

2000-08-25 Thread Peter Richards
Hey there! I am sending this one note to this group to see if I can get some great perl developers interested in joining our team. Perl is the language of choice on Linux for our development and we foster a flexible, friendly environment. Thanks in advance for your time. Zack Network is a venture

Re: mod_perl for Apache to work with ActivePerl (APR#816)

2000-08-25 Thread Gurusamy Sarathy
On Tue, 18 Jul 2000 11:21:15 PDT, [EMAIL PROTECTED] wrote: >Full_Name: >Version: ActivePerl 616 >OS: Windows NT 4.0 SP 4 or lower >Submission from: (NULL) (155.229.70.9) > > >is there a way to get mod_perl for Apache to work with ActivePerl? mod_perl apparently doesn't know anything about ithrea

Re: Why is Apache::PerlRun a subclass of Apache?

2000-08-25 Thread Ken Williams
[This message bounced last time I sent it, so I'm trying again.] [EMAIL PROTECTED] (Ken Williams) wrote: > ... *crickets* ... > >Here's a patch for the implementation I'm looking for. And here's a better one. I discovered that Apache->request($r) doesn't work as expected (see my previous mes

Re: Args and Params.

2000-08-25 Thread T.J. Mather
I'm not sure about this but the problem might be that CGI is attempting to read the POST data first, and since POST data can only be read from the socket once, $r->content hangs. You might want to look into either 1. caching POSTed Data: http://perl.apache.org/guide/snippets.html#Caching_POSTed_

Args and Params.

2000-08-25 Thread Justin Wheeler
While writing an apache module, using mod_perl 1.24, I followed the instructions in my "Writing Apache Modules with Perl and C" book. The book told me to get at all parameters, my %params; my @args = ($r->args, $r->content); # This line is the line in question. while (my

GET request size

2000-08-25 Thread Alex Menendez
hello, all is there any limit to the size of a GET request url when it is generated from inside a mod_perl module? I have a POST cgi coming in with a bunch of data and I would like to turn it into a GET url so I can effectively use lookup_uri and run from the Apache::SubRequest class. I know

Re: Apache::Session and Informix (actually problem with blobs in Informix)

2000-08-25 Thread Carl Tichler
Hello Jay, This is actually a documented problem with DBD::Informix and blobs; DBD::Informix cannot update a blob ("TEXT") field in a query, and the only current workaround is to do a delete, then insert. I have attached the relevant section from the DBD::Informix man page. This would probably

Re: Apache::Session and Informix

2000-08-25 Thread Chris Winters
I have no experience with Informix, but perhaps you need to store the data as binary? The Apache::Session::Sybase module stores the data in an IMAGE (rather than TEXT) field and does the necessary pack/unpack to convert the data behind the scenes. Maybe you could do something similar with Informix

Apache::Session and Informix

2000-08-25 Thread Jay Jacobs
I've been fighting with Apache::Session and Informix... I've been using Apache::Session ver 1.03 (knowing that 1.5x isn't "appropriate" for informix) and Informix Dynamic server 2000 9.2. Everything else is the latest version, and on suse 6.4 At first it would hang up when trying to re-tie to a

RE: how to set more then one cookie

2000-08-25 Thread Geoffrey Young
just to note for the newer users, Apache::Cookie is part of libapreq, not the standard mod_perl package... you can get it at http://www.perl.com/CPAN-local/modules/by-module/Apache/libapreq-0.31.tar.gz or any other CPAN mirror... --Geoff > -Original Message- > From: Alex Menendez [ma

Re: Help compiling!

2000-08-25 Thread Jens-Uwe Mager
On Fri, Aug 25, 2000 at 08:28:36AM -0400, Graham, Brian wrote: > Hello everyone, > > I don't think this is a "modperl" problem but I am at my wits end and > struggling to get modperl installed. > > On AIX 4.3.3 S70 multi CPU machine with the IBM C compiler (don't know what > version) I have done

Re: how to set more then one cookie

2000-08-25 Thread Alex Menendez
you can also use Apache::Cookie and do something like this: my $cookie = Apache::Cookie->new($r, -name=> 'q_string', -value => $value, -expires => '+3h',

RE: how to set more then one cookie

2000-08-25 Thread Geoffrey Young
well, since this is the mod_perl mailing list :) my $r = Apache->request; $r->headers_out->add('Set-Cookie' => "cookie a stuff"); $r->headers_out->add('Set-Cookie' => "cookie b stuff"); should work ok... HTH --Geoff > -Original Message- > From: Matthias Hanns [mailto:[EMAIL PROTECTED]

how to set more then one cookie

2000-08-25 Thread Matthias Hanns
Hi all together, when I want to set one cookie I use the following way: ... my $cookie = CGI::cookie( ... ); # or with OO: my $q = new CGI; my $cookie = $q->cookie( ... ); ... print CGI::header($cookie); ... Now my question: How I can set more then one cookie? Any hints, where I can read or

Re: A precision about "All RAM Consumed" in the manual

2000-08-25 Thread Adi
Benoit Caron wrote: > > sub UNIVERSAL::AUTOLOAD { >my $class = shift; >warn "$class can't \$UNIVERSAL::AUTOLOAD!\n"; > } > > to trap the memory leaking that can occur if a sub is undefined. But > where should I put this sub? In all my mod-perl module

Re: VB Parser

2000-08-25 Thread Ime Smits
| No, it doesn't seem to be going forward at the moment. Ime Smits says he has something put | together that's _almost_ usable, but needs help building perl equivalents of all the VBScript | functions. I'm still waiting on his initiative to get going... | Note to Ime: This is not a criticism di

Help compiling!

2000-08-25 Thread Graham, Brian
Title: Help compiling! Hello everyone, I don't think this is a "modperl" problem but I am at my wits end and struggling to get modperl installed. On AIX 4.3.3 S70 multi CPU machine with the IBM C compiler (don't know what version) I have done the following: Downloaded and installed perl5

Cookies

2000-08-25 Thread Jeff Smelser
How do you set expires in ASP cookies? I tried, and various other ways too. Even nodeworks.com wouldn't work for me. Thanks. $expires=&HTTP::Date::time2str(time()+86400); $Response->{Cookies}{'username','Expires', '$expires'} = $Request->Form('username'); $Response->{Cookies}{'password'} = $Requ