Help for this page

Select Code to Download


  1. or download this
    my $url = $cgi->param('url');
    
    ...
    
    $self->header_add(-cookie => $cookie);
    $self->header_add(-redirect => $cgi->redirect($url));
    
  2. or download this
    $self->header_add(-cookie => [$cookie]);
    
  3. or download this
    print $cgi->header(
        -cookie => $cookie,
        -redirect => $cgi->redirect($url)
    );
    
  4. or download this
    $self->header_type('redirect');
    $self->header_props(
        -url => $url,
        -cookie => [$cookie] );