in reply to Re: gmail from perl
in thread gmail from perl

Apropos of some recent discussions, I've got HTTP::Recorder working right now, and clicking on Javascript thingies creates only a blank line in the output log, for instance:

$agent->get("http://www.oreilly.com/"); #go to oreilly.com #click on upper-right JS thingie; noth +ing logged $agent->get("http://www.oreilly.com/"); #back button


If I'm missing something, please set me straight-- but I see no evidence that anything done with Javascript is captured at all by HTTP::Recorder or HTTP::Proxy.

Replies are listed 'Best First'.
Re: This does not work
by perrin (Chancellor) on Jun 14, 2004 at 21:08 UTC
    My guess would be that it doesn't log anything because it doesn't actually do anything that involves the server. That means it can be ignored, if the goal of the script is to grab some data from the server.
      I dont' think so. I also tested it against an in-house app on IE that is known to pass all kinds of stuff to and from the server, all in JS code-- HTTP::Recorder captured no traffic at all.

      Something about JavaScript makes interaction with the server invisible. I really like HTTP::Recorder, I wish I could figure out to expose that traffic.
        Sorry, but I think you've configured something wrong or else the stuff you believe is being loaded from the server was pre-loaded in some way. The server only handles HTTP, so anything fetched from it must use HTTP, which means it must go through your HTTP proxy, which is dumping everything to HTTP::Recorder. Ther is nothing magical about JavaScript.