ssk has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on how to view source file in IE similair to Firefox

Replies are listed 'Best First'.
Re: how to view source file in IE similair to Firefox
by john_oshea (Priest) on Dec 27, 2005 at 10:12 UTC

    What's much more likely to be happening is that the web server is serving out different versions of the same page dependent on the browser's 'user-agent' setting. You can verify this by changing the user-agent setting to whatever it is that Firefox uses by default. Something like this should allow you to change the setting for IE.

    Here's a pretty comprehensive list of existing user-agent strings, should you want IE to masquerade as anything else.

    Hope that helps

Re: how to view source file in IE similair to Firefox
by bart (Canon) on Dec 27, 2005 at 15:26 UTC
    I assume you're talking about one specific web page? Try using LWP::Simple, for example (unless you have some Unix command line tools to do the same), to retrieve the page, and see what the source really looks like.

    If the site returns different pages depending on the browser, you can spoof what UserAgent you're using, to get one or the other.

    Still, it's not impossible that either browser actually still shows something slightly different from what it actually got — but typically not that much.

Re: how to view source file in IE similair to Firefox
by jonix (Friar) on Dec 27, 2005 at 16:48 UTC
    Even though the answers already given might point you to the right thing, it is not clear to me from what you wrote what kind of problem you really have, and what you expect from the solution. If this is a problem not related to perl please consider posting it elsewhere, or do you think it might benefit the other monks too? If so, you need to explain more and give some examples to fiddle with IMHO.

    Please have a look at How do I post a question effectively? too if you did not already. If this sounds offensive to you, I regret. It is rather meant to be constructive criticism :)

    Cheers,
    jonix