Re: $r-headers_out Location and Set-Cookie

2003-09-06 Thread Michael
On Fri, Sep 05, 2003 at 10:13:36, Geoffrey Young said... actually, the return value is entirely ignored in Registry scripts - that's why we need the $r-status hack, which is not needed (or desired) in handlers. if you returned SERVER_ERROR it would still work, so long as you set $r-status

Re: $r-headers_out Location and Set-Cookie

2003-09-05 Thread Michael
); $r-headers_out-set(Location = $location); $r-status(REDIRECT); $r-send_http_header; return OK; How would you have written it? Seems to me you'd want to *return* REDIRECT, not set $r-status to REDIRECT. Here's what I do in this case: $r-header_out(Location

Re: $r-headers_out Location and Set-Cookie

2003-09-05 Thread Geoffrey Young
); $r-headers_out-set(Location = $location); $r-status(REDIRECT); $r-send_http_header; return OK; How would you have written it? http://marc.theaimsgroup.com/?l=apache-modperlm=106260380606735w=2 thanks, I meant to put that in myself :) Seems to me you'd want to *return* REDIRECT

FW: $r-headers_out Location and Set-Cookie

2003-09-04 Thread Garrett Goebel
Title: FW: $r-headers_out Location and Set-Cookie [Note: reposting, the original post appears to have dropped through the cracks] Geoffrey Young wrote: That's when you use Apache::compat, doing the mp1 syntax. In mp2-speak that would be: $r-err_headers_out-add('Set-Cookie

Re: FW: $r-headers_out Location and Set-Cookie

2003-09-04 Thread Geoffrey Young
Garrett Goebel wrote: [Note: reposting, the original post appears to have dropped through the cracks] not only did I get two of these already, but I also posted a reply :) --Geoff -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

RE: FW: $r-headers_out Location and Set-Cookie

2003-09-04 Thread Garrett Goebel
Title: RE: FW: $r-headers_out Location and Set-Cookie Geoffrey Young wrote: Garrett Goebel wrote: [Note: reposting, the original post appears to have dropped through the cracks] not only did I get two of these already, but I also posted a reply :) My bad. It was an old thread and I

RE: $r-headers_out Location and Set-Cookie

2003-09-03 Thread Garrett Goebel
Title: RE: $r-headers_out Location and Set-Cookie Geoffrey Young wrote: That's when you use Apache::compat, doing the mp1 syntax. In mp2-speak that would be: $r-err_headers_out-add('Set-Cookie' = $packed_cookie); $r-headers_out-set('Location' = $url); $r-status(REDIRECT

Re: $r-headers_out Location and Set-Cookie

2003-09-03 Thread Geoffrey Young
Garrett Goebel wrote: Geoffrey Young wrote: That's when you use Apache::compat, doing the mp1 syntax. In mp2-speak that would be: $r-err_headers_out-add('Set-Cookie' = $packed_cookie); $r-headers_out-set('Location' = $url); $r-status(REDIRECT); notice that you don't

Re: $r-headers_out Location and Set-Cookie

2003-08-14 Thread Joe Schaefer
gerard uolaquetalestem [EMAIL PROTECTED] writes: [...] But exactly what's the difference between err_headers_out and headers_out? I understand that the first is related with an error message sended by headers, but i mean, really what does apache make different? Here's a straightforward

Re: $r-headers_out Location and Set-Cookie

2003-08-14 Thread Stas Bekman
syntax. In mp2-speak that would be: $r-err_headers_out-add('Set-Cookie' = $packed_cookie); $r-headers_out-set('Location' = $url); $r-status(REDIRECT); notice that you don't need to call $r-send_http_header, it doesn't exist in mp2

Re: $r-headers_out Location and Set-Cookie

2003-08-14 Thread Nick Tonkin
$r-headers_out-{'Set-Cookie'} = $cookie; $r-headers_out-{'Location'} = $url; Redirects the page to $url but cookie is not seen by browser $r-headers_out-{'Set-Cookie'} = $cookie; #$r-headers_out-{'Location'} = $url; Location is the perl handler 'localhost/pageB/' (perl handler), if you then go

Re: $r-headers_out Location and Set-Cookie

2003-08-14 Thread Matt Sergeant
On Saturday, Aug 9, 2003, at 15:26 Europe/London, Nick Tonkin wrote: On Sat, 9 Aug 2003, gerard uolaquetalestem wrote: I have the next problem, i am in page A that form points to page B, that is a modperl2 handler. This handler makes a job and decides to send a cookie to the browser, and

Re: Re: $r-headers_out Location and Set-Cookie

2003-08-14 Thread gerard uolaquetalestem
- Original Message - From: Stas Bekman To: Chris Faust Cc: ; Sent: Sunday, August 10, 2003 2:37 PM Subject: Re: $r-headers_out Location and Set-Cookie Chris Faust wrote: I haven't had any problems setting a cookie and redirecting on MP2 by using the below $r-err_headers_out-add('Set-Cookie

$r-headers_out Location and Set-Cookie

2003-08-14 Thread gerard uolaquetalestem
-{'Location'} = $url; Redirects the page to $url but cookie is not seen by browser $r-headers_out-{'Set-Cookie'} = $cookie; #$r-headers_out-{'Location'} = $url; Location is the perl handler 'localhost/pageB/' (perl handler), if you then go to localhost/pageA (or simply click BACK button) then the browser

Re: $r-headers_out Location and Set-Cookie

2003-08-11 Thread Chris Faust
[EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 09, 2003 10:01 AM Subject: $r-headers_out Location and Set-Cookie I have the next problem, i am in page A that form points to page B, that is a modperl2 handler. This handler makes a job and decides to send a cookie to the browser

Re: $r-headers_out Location and Set-Cookie

2003-08-11 Thread Geoffrey Young
That's when you use Apache::compat, doing the mp1 syntax. In mp2-speak that would be: $r-err_headers_out-add('Set-Cookie' = $packed_cookie); $r-headers_out-set('Location' = $url); $r-status(REDIRECT); notice that you don't need to call $r-send_http_header, it doesn't exist in mp2