I hope I ask this specific enough not to confuse or ask for the wrong answers.

Iam using LWP::useragent and HTTP::request to retreive documents. Now heres my problem:

When I retrieve them and print them to the screen, the document Im accessing also wants to send there own cookies to be set BUT, since Im accessing it thru my script, it seems to be unable to set its cookies.

I need a way to request the document; display the document; at the same time allow the requested documents domain to set these cookies because they are important.

I can't set there cookie so I have to find a way to allow them to set it.
Keep in mind I cannnot access the document without my script so I have to find a way to do it thru CGI.

Thanks.

Edited 2001-05-14 by Ovid. Shortened title. Original title was:

http::request, lwp::useragent, cookie, cookies, retrieve document; print it to screen; and allow them to set there own cookie

In reply to How can my script accept cookies? by Anonymous Monk

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.