i use internet explorer 6.0, while i login the website ,it would excute this method,this code in this following,
$namecookie = cookie(-name => "amembernamecookie", -value => "$ +inmembername", -path => "$cookiepath/", -expires => "$CookieDate"); $passcookie = cookie(-name => "apasswordcookie", -value = +> "$inpassword", -path => "$cookiepath/", -expires => "$CookieDate" +); print header(-cookie=>[$namecookie,$passcookie] , -expires=>"$EXP_MODE +" , -cache=>"$CACHE_MODES");
and while i use lwp to load the webpage , it will use this code to read my computer's cookies about username and password, the code is
if (! $inmembername) { $inmembername = cookie("amembernamecookie"); } if (! $inpassword) { $inpassword = cookie("apasswordcookie"); }
as you know LWP is not support cookies by default, and though we use http::cookies to create a cookie file in the harddisk, but it is not equal to the cookies which we login the website and create by server. thanks for you reply me, how can i read the cookies or set cookies with my username and password, while i use a LWP to download the webpage ,the server can know me through the cookies value

In reply to Re^2: how to read local cookies with LWP by weihe
in thread how to read local cookies with LWP by weihe

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.