Please read this:

FROM: http://faqchest.dynhost.com/prgm/perlu-l/perl-00/perl-0001/perl-000100/perl00011417_17732.html Date: Fri, 14 Jan 2000 08:32:43 -0500 From: Adrian Hands <PRIVACY PROTECTION> Subject: Re: Help!! HTTP::Cookies Matthew Shack wrote: > > Hello... > I am trying to parse a webpage and get the cookie and then send it > back using HTTP::Cookies. Can someone well me if this is even the correct > way and if not can some one tell me what I should use? and if I am using the > correct the pm can someone tell me how to use it? Thanks.. > > ~~Shack You should be able to extract cookies with that package, manipulate them and send them back with the next request. The package works well, but the biggest problem I've run into in using it is: It doesn't like URL's that contain only one dot. "http://foo.com" won't work. According to the RFC, URLs must contain at least two dots and this package enforces that.

------------------------------

Is there any truth to this? What would be an alternative package to use? The reason is, my cookies don't seem to be working. And I wonder if this is why, as the site has only one dot...


In reply to HTTP::cookies and URLs with only one dot? by Kratimoyporroon

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.