the mod_perl list is: modperl@xxxxxxxxxxxxxxx The module specific list for Apache2::Cookie is: apreq-dev@xxxxxxxxxxxxxxxxWithout knowing what you're trying to do with your code I might not be able to answer you effectively.
So far in my limitted experience with Apache2::Cookie I've found the IE for the Windows is particularly finicky about how cookies are made. Here is an example of code I have to set cookies:
# # Object's constructor # sub new { $self->{jar} = Apache2::Cookie::Jar->new( $self->{req} ); $self->{cookies} = $self->{jar}->cookies(); } # # Set Cookie Array Up for baking later # $cookie = { name => "", value => "" } # sub set { my( $self, $cookie ) = ( shift, shift ); my $data = $self->{data}; # an array I use to set cookies later if( $cookie ) {push( @$data, Apache2::Cookie->new( $self->{req}, %{$cookie} ) ) or return;
} return 1; } Then when I'm done with everything else and ready to output: my $data = $self->{cookies}->{data}; if( @$data ) { foreach( @$data ) { $_->bake( $r ); } } To get cookies I use: my $jar = $self->{cookies}->{jar}; my $cookies = $jar->cookies();my $previous_cookie = $cookies->{previous_cookie}->thaw if( $cookies->{previous_cookie} );
There are probably way better examples out there already... Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Feb 1, 2006, at 12:37 AM, Jason Younker wrote:
Hello All, I recently upgraded to the following (on a rhel3 box): Apache/2.0.55 mod_ssl/2.0.55 OpenSSL/0.9.8 DAV/2 mod_apreq2-20050712/2.1.3-dev mod_perl/2.0.2 Perl/v5.8.0And now I find myself stuck for hours on what I am convinced is a no-brainer. Here is what I am trying to do ($r below is of course an Apache2::RequestRec object):--start-- my $jar = Apache2::Cookie::Jar->new($r); $m->out("Jar Status: ". $jar->status() ."<br>"); --end-- In Firefox 1.5, this prints: "Jar Status: Success" However, in IE 6.0.28, I am getting: "Jar Status: Missing input data"Other than that, I don't know what to tell you. I have placed some install information below (how I compiled mod_perl, apache, openssl in case it helps). I imagine this is an httpd.conf issue, but I have no idea what to ask or where to go from here. *Any* help is very, very appreciated!Jason # openssl cd openssl-0.9.8a./config --prefix=/usr/local/ssl/install --openssldir=/usr/local/ssl/install/opensslmake make install # Apache2 tar -zxvf httpd-2.2.0.tar.gz cd httpd-2.2.0./configure -with-mpm=worker --enable-modules=all --enable-mods-shared=all --enable-deflate --enable-ssl --with-ssl=/usr/local/ssl/install/opensslmake make install # mod_perl 2 tar -zxvf mod_perl-2.0-current.tar.gz cd mod_perl-2.0.2 perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs make make test make install ls -l /usr/local/apache2/modules/mod_perl.so ---------------------------------------------------------------------The official User-To-User support forum of the Apache HTTP Server Project.See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx