in reply to Re: Mimicking Internet Explorer (IE) via LWP or Mechanize?
in thread Mimicking Internet Explorer (IE) via LWP or Mechanize?

The issue from the previous post was that WIN32:IE:Mechanize appears to not work correctly with frames. Google and perlmonk searches turned up questions back to 2005 but no real answers. So using WINE won't work

I guess I could use a sniffer/tracer as the other solutions suggest and hack out a solution but I figured this sort of problem must have come up before. If possible I wanted to save the few days of troubleshooting.

Is there any provisions in LWP or Mechanize for simulating a particular browser?

Or any ideas on the original post? - http://www.perlmonks.org/?node_id=854131

Or is RTF-packets is the only solution here

Thanks!

  • Comment on Re^2: Mimicking Internet Explorer (IE) via LWP or Mechanize?

Replies are listed 'Best First'.
Re^3: Mimicking Internet Explorer (IE) via LWP or Mechanize?
by Corion (Patriarch) on Aug 11, 2010 at 22:18 UTC

    Why don't you go and read the links you've already been given? Also see what WWW::Mechanize has to say about its browser "emulation".

      Yes - it's possible that if you don't need any IE-specific rendering or Javascript, and don't need to test with an ActiveX control, that straight WWW::Mechanize with agent_alias will suffice. That's enough to lie and say you're IE.
        Perfect! Thanks!
      I already looked and there is a lot about emulating and running javascript but nothing really on emulating IE except Win32:IE:Mechanize - which has the Frame issue. It sounds like this is new territory... I loaded IE Tab Plus on Firefox and will use Firebug to sniff the http headers and see what is triggering the site to detect IE and modify the script accordingly. Thanks anyway. Good redirects, just didn't fit the bill

        A common approach is to simply look at what goes over the wire by using a network sniffer like Wireshark. That way you are independent of what the browser program tells you (or not).