topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 13, 2024, 6:05 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: ChameleonNavigator  (Read 8746 times)

sembel

  • Honorary Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 9
    • View Profile
    • Donate to Member
ChameleonNavigator
« on: June 08, 2006, 11:18 PM »
Hello everybody!

I did a small freeware utility for the web content testing depended on user settings (browser name, accepted languages and referrer).
The application uses the IE engine, but on the server it will be identified as Netscape, Opera, Firefox, Google bot or anything you want.
If the server sends different content, you will see it. Also you can easy check content depended on user language or referrer.

Some features like Javascript, ActiveX, Images etc. you can quick enable/disable.

For me it works fine, but still beta, because it's without help file and maybe with some bugs ;)



The program is without installation.

ChameleonNavigator.exe: ~760 Kb
http://www.sembel.net/download/ChameleonNavigator.exe

Flash presentation: ~595 Kb
http://www.sembel.net/temp/ChameleonNavigatorHelp.chm


Any comment will be appreciated!

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: ChameleonNavigator
« Reply #1 on: June 08, 2006, 11:43 PM »
very nice idea!!!  :up: :up: :up:

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: ChameleonNavigator
« Reply #2 on: June 08, 2006, 11:44 PM »
option to disable cookies might be nice to add as well.

sembel

  • Honorary Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 9
    • View Profile
    • Donate to Member
Re: ChameleonNavigator
« Reply #3 on: June 09, 2006, 08:36 AM »
thank you, mouser!
you are right, the cookie option would be useful too.

Jammo the OrganizedFellow

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 212
    • View Profile
    • OrganizedFellow
    • Donate to Member
Re: ChameleonNavigator
« Reply #4 on: June 15, 2006, 10:52 AM »
The other day, I completely rewrote a few pages of my site, which uses ExpressionEngine.

I did all my testing in FireFox 1.5.0.4.
I totally failed to make sure my pages rendered fine in MSIE.
So this utility will allow me to make sure there are no further mishaps. :)

Thank You!  :Thmbsup:

*EDIT*
Installed. Ran. Very useful!
Why not have latest engine for FireFox?
This way, testing doesn't have to be switched between two apps? :)
As an aspiring web developer/designer, it is a constant struggle to cope with my ADHD + Hypomania/Bipolar Disorder.

The slow growth of my web dev projects is eclipsed by my patience, understanding and desire to learn AS MUCH AS POSSIBLE as I slowly progress.

X_____jamjammo_____
« Last Edit: June 15, 2006, 10:57 AM by jammo »

sembel

  • Honorary Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 9
    • View Profile
    • Donate to Member
Re: ChameleonNavigator
« Reply #5 on: June 15, 2006, 11:08 AM »
thanks jammo!

sembel

  • Honorary Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 9
    • View Profile
    • Donate to Member
Re: ChameleonNavigator
« Reply #6 on: June 15, 2006, 11:19 AM »
Because my aim was emulation (browser name, accepted languages and referrer) for the server and I didn't think about client rendering. Also with IE engine much easier ;)

quantumrider

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 18
    • View Profile
    • Donate to Member
Re: ChameleonNavigator
« Reply #7 on: June 16, 2006, 02:27 AM »
Is t written it in c++? If so, any chance you could post the information on how the user agent string can be changed while using IE engine?

I need that badly!


-ark

sembel

  • Honorary Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 9
    • View Profile
    • Donate to Member
Re: ChameleonNavigator
« Reply #8 on: June 16, 2006, 02:44 AM »
I'm using BeforeNavigate2. I hope it helps you:

Code: C++ [Select]
  1. void CMyView::BeforeNavigate2(LPDISPATCH pDisp, VARIANT* URL,
  2.                 VARIANT* Flags, VARIANT* TargetFrameName,
  3.                 VARIANT* PostData, VARIANT* Headers, VARIANT_BOOL* Cancel)
  4. {
  5.         IWebBrowser2*   pWB = NULL;
  6.         HRESULT hr = pDisp->QueryInterface( IID_IWebBrowser2, (void**)&pWB );
  7.         if(SUCCEEDED(hr))
  8.         {
  9.                 CString csHeaders(V_BSTR(Headers));
  10.                 CString csURL(V_BSTR(URL));
  11.                 if(csHeaders.Find("User-Agent")==-1 && csURL.Find("about:blank")==-1)
  12.                 {
  13.                         pWB->Stop();
  14.  
  15.                         CString strHeader = "" ;
  16.                         strHeader += "User-Agent:";  
  17.                         strHeader += "HERE MY NAME";  
  18.                         strHeader += "\r\n";  
  19.                         COleVariant vHeaders(_T(strHeader), VT_BSTR );
  20.                         pWB->Navigate2(URL, Flags, NULL, PostData, vHeaders);  
  21.                 }
  22.                 else
  23.                 {
  24.                         CHtmlView::BeforeNavigate2(pDisp, URL, Flags, TargetFrameName, PostData, Headers, Cancel);     
  25.                 }
  26.                 pWB->Release();
  27.         }
  28. }