Thanks, Malcolm.

I'll give it a try.

Jared

At 7:46 PM -0500 1/3/06, Malcolm J Harwood wrote:
On Tuesday 03 January 2006 05:13 pm, Jared Jackson wrote:

 Apache2::Cookie is loaded in my custom handler.pl

 In my syshandler, I have the following code to retrieve cookies.

 <%init>
 my %cookies = Apache2::Cookie->fetch($r);
 ......
 $m->call_next;

 </%init>

 <%flags>
 inherit => undef
 </%flags>

 When I request a page, I get a browser error The error was: "lost
 network connection" (NSURLErrorDomain:-1005) in Mac OS X Safari.

 In Firefox, nothing happens period.

 If I comment out the line

 my %cookies = Apache2::Cookie->fetch($r);

 The page is served without error. But, of course, no cookies are retrieved.

 Does anyone have a working example of fetching cookies with Apache2::Cookie
 ?

Yes. Looks like you are using the old api, which doesn't work with Apache2/mp2
as far as I know.

You want:
    my $jar     = Apache2::Cookie::Jar->new($r);
    my $cookie  = $jar->cookies('cookiename');
or
    my %cookies  = $jar->cookies();



--
I refuse to conform to your expectations
- Flip Windtree


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to