Re: Apache::URI port() problem

2000-04-11 Thread Zeqing Xia
It works! Thanks so much! Fred Eric Cholet wrote: Hello, It seems the method unparse() of Apache::URI does not take the port value into the result string. For example, I have: my $uri = Apache::URI-parse($r, $r-uri); $uri-scheme('http'); $uri-hostname($r-get_server_name);

Apache::URI port() problem

2000-04-10 Thread Zeqing Xia
Hello, It seems the method unparse() of Apache::URI does not take the port value into the result string. For example, I have: my $uri = Apache::URI-parse($r, $r-uri); $uri-scheme('http'); $uri-hostname($r-get_server_name); $uri-port(8080); $uri-query(scalar $r-args); If I call

First argument to Apache::Cookie-new

2000-04-10 Thread Zeqing Xia
I have noticed that although it is required to pass $r to Apache::Cookie-new() as the first argument, it appears that no type checking is performed. In other words, if I pass anything else as the first arg, no error is reported. However the subsequent call to $cookie-as_string will result in an

REDIRECT missing Cookie

2000-04-08 Thread Zeqing Xia
Hi, I'm having a problem with setting the cookie in a REDIRECT. Basically, I'm doing this in a handler: $r-headers_out-add('Set-Cookie' = $cookie); $r-headers_out-add('Location' = $location); return REDIRECT; The $location is hit but the cookie is missing when I debug the handler

Re: REDIRECT missing Cookie

2000-04-08 Thread Zeqing Xia
Xia Ken Williams wrote: [EMAIL PROTECTED] (Zeqing Xia) wrote: Hi, I'm having a problem with setting the cookie in a REDIRECT. Basically, I'm doing this in a handler: $r-headers_out-add('Set-Cookie' = $cookie); $r-headers_out-add('Location' = $location); return REDIRECT