Hmmm... upon further inspection, it appears that something is putting a space before Set-Cookie: in the response header. Here's what I got when I used my magic request application written by a man I met in the subway one day:

GET /index.pl?user=antirice&pass=something_or_another HTTP/1.1 Host: lyrics.batkins.com HTTP/1.1 200 OK Date: Fri, 22 Aug 2003 01:24:00 GMT Server: Apache/1.3.27 (Unix) mod_auth_passthrough/1.6 Chili!Soft-ASP/3 +.6.2 mod_log_bytes/1.2 mod_bwlimited/1.0 PHP/4.3.2 FrontPage/5.0.2.25 +10 mod_ssl/2.8.14 OpenSSL/0.9.6b Set-Cookie: lyr_bat=antirice-some_pass_md5_checksum; domain=lyrics.ba +tkins.com; path=/; expires=Fri, 22-Aug-2003 01:34:11 GMT Transfer-Encoding: chunked Content-Type: text/html; charset=ISO-8859-1

Check out the version of CGI you are using. I'm using 2.81 and it doesn't have such a space. Of course, it may be from the server string before it. Either way, this is probably the cause.

Hope this helps.

antirice    
The first rule of Perl club is - use Perl
The
ith rule of Perl club is - follow rule i - 1 for i > 1


In reply to Re: Re: Re: Weirrd Cookie Problems by antirice
in thread Weirrd Cookie Problems by batkins

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.