Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I think you could do it as an HTTP Proxy. Cookies travel in the header so a proxy should be able to capture and add cookies at will.


    • How do the user-agents get access to them? Getting the cookies is not the hard part---finding them later is.

      The major problem is that a lot of browsers do it in memory. They read their cookies file, keep it in memory, do stuff, and rewrite it on exit. Once the browser starts up, it has all the cookies it is going to get from anything other than its own requests.
      • Web browsers are have builtin HTTP Proxy support. Just open up your preferences and point your browser at the proxy address. Then all your HTTP requests flow through the proxy.


        • I still don't see how this solves the problem of the user agents loading already-set cookies into memory and sharing them with other browsers.

          A proxy is solving a different problem than the one I am talking about. :)
          • Ok, I don't think I've been very clear. Let me walk you through my crazy scheme.

            You write an HTTP proxy that captures cookies and modifies requests to include the cookies from its jar. When a browser makes a request through the proxy the proxy can decide to add cookies to the request based on its own cookie stash. It can ignore the cookies the browser has or doesn't have and substitute its own.

            Let's take as an example, me logging in to use.perl in Mozilla, then trying to access the site from IE.

            1. Moz
            • No, you were clear.

              That way the browser knows nothing about it. I want the browser to know about the cookies. I don't want an add on, I want browser support for it.