48 users online (1 members and 47 guests)  

Thread: Perl cookie....


  Results 1 to 3 of 3

Related

  1. set multiple cookie    Forum: CGI Perl Forum
    Replies: 0
  2. Set and get cookie using perl    Forum: CGI Perl Forum
    Replies: 1
  3. Set-Cookie    Forum: CGI Perl Forum
    Replies: 1
  4. Replies: 1
  5. cookie problem...    Forum: CGI Perl Forum
    Replies: 2
  1. #1
    Roshu's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2005
    Posts
    2

    Post Perl cookie....

    Hi there,

    I am trying to make a short script where I create a cookie, just to see how it works and if it works, but the script won't run whatever I do.... Need help on this!

    This is my script:

    #!/usr/bin/perl
    use CGI;
    my $query=new CGI;

    my $cookie=$query->cookie( -name=>'ID',
    -value=>'123456',
    -expires=>'+1y',
    -path=>'/',
    - domain=>'vengeance',
    -secure=>0);
    print $query->header(-cookie=>$cookie);

    The error : Premature end of script headers: cookie.cgi

  2. #2
    Roshu's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2005
    Posts
    2

    Re: Perl cookie....

    Solved this.... always be carefull to copy the file in ASCII mode not binary....

  3. #3
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: Perl cookie....

    lol... ya, that will do it some times!

    at first i only read the top part, and couldnt figure it out. i will have to keep ascii/binary in mind when other people have problems.



Tags for this Thread