Loading ...
Sorry, an error occurred while loading the content.

Re: How to set two http_headers with same name [mp2]

Expand Messages
  • Thomas Klausner
    Hi! ... Use Apache::Cookie: my $cookie1=Apache::Cookie- new($r, ...)l $cookie1- bake; my $cookie2=Apache::Cookie- new($r, ...)l $cookie2- bake; But I m quite
    Message 1 of 3 , Apr 18 4:57 AM
    • 0 Attachment
      Hi!

      On Fri, Apr 18, 2003 at 01:34:20PM +0200, Denis Banovic wrote:

      > I'm trying to set 2 http_headers with same name e.g
      >
      > Set-Cookie: test2=2; domain=test.com; path=/
      > Set-Cookie: test1=1; domain=test.com; path=/
      > ..
      > Can anyone give me a hint, how to set 2 http_headers with the same name?

      Use Apache::Cookie:

      my $cookie1=Apache::Cookie->new($r, ...)l
      $cookie1->bake;
      my $cookie2=Apache::Cookie->new($r, ...)l
      $cookie2->bake;

      But I'm quite sure you can do it without Apache::Cookie using the plain
      mod_perl API. But why re-invent the wheel?


      --
      #!/usr/bin/perl http://domm.zsi.at
      for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
    Your message has been successfully submitted and would be delivered to recipients shortly.