in reply to Clearing cache/Deleting cookies in Internet Explorer

There is no need to do this. A Perl LWP program won't know about IE or any other browser. This kind of program IS a browser! What cookies you accept (or not) is up to you as well as where you put them - a Perl LWP program has nothing at all to do with IE!
  • Comment on Re: Clearing cache/Deleting cookies in Internet Explorer

Replies are listed 'Best First'.
Re^2: Clearing cache/Deleting cookies in Internet Explorer
by Marshall (Canon) on Jan 26, 2009 at 01:59 UTC
    I think I answered the wrong question! "make HTTP" requests lead me to believe that you were using some other thing, eg an LWP program. If what you want is an automatic way to clear cookies in IE and you plan to use IE for browsing, there are a couple of ways to go. (1) There are a number of mouse automation tools out there...you will have to search...some are better than others. But basically these things make a macro command that automates your key presses (like you can in a text editor). (2) hacking on IE internal files. IE cookies are stored in a file called cookies.txt - search your computer to find it. Editing that file or messing around with it in any serious way is more than you probably want to get into! There are various kinds of cookies. The clear cookie button in IE doesn't clear them all. I try to stay as far away from IE as I can!! So I'm just guessing here, but you could probably use IE to clear cookies. Copy resulting cookies.txt to say, minimumCookies.txt. Then write simple .bat file that replaces current cookie file with that one to "clear" new cookies? (3) just run some anti-virus, anti-spyware program once per day to clear unwanted cookies.

    In any event, I don't think you are asking a Perl question. Good luck!

      Thanks Marshall for your response. I am using the Win32::IEAutomation module to automate the IE browser for browsing through some URLs ( I can't use LWP). The URLs I browse will show different images. Sometimes IE uses cache to display the image, instead of making the actual call. I am trying to clear the IE cache before I make any request. Is there anyway I can do it using win32::OLE or similar modules? I will try using the other tools/methods mentioned above.