Hmmmm... yeah, this problem is driving me crazy. Thanks for the responses so far. I've tried sending the client header request with a no cache setting... I've also tried changing the document age to something very high so it will always be considered "not fresh". Something out there is caching this information and giving bad data... what's strange is the URL I'm passing is different each time (dynamically generated by filling in parameters passed in from the URL). If I take the same exact URL and drop it into my browser I get the correct http response every single time. But, using LWP::UserAgent it's bad bad bad. What is strange too is every time I make a request the responding app creates a cookie with a session ID... I can see the cookie and it shows up and it's different everytime... so I assume the request is actually making it to the server. I see this problem with a proxy server and without.... BUT, if I move from one proxy to another every few hours I'll get one good response... then all repsonses after that are old and incorrect. The cache munchkins are toying with me! Arg! Btw, in this particular situation the subroutine is only being called once... then the program exits. But, how would I get rid of this leak? Thanks...

In reply to Re^3: HTTP::Request and caching... by jthornton
in thread HTTP::Request and caching... by jthornton

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.