Messages - sembel [ switch to compact view ]

Pages: [1] 2next
1
General Software Discussion / Re: ChameleonNavigator
« 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. }

2
General Software Discussion / Re: ChameleonNavigator
« 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 ;)

3
General Software Discussion / Re: ChameleonNavigator
« on: June 15, 2006, 11:08 AM »
thanks jammo!

4
General Software Discussion / Re: ChameleonNavigator
« on: June 09, 2006, 08:36 AM »
thank you, mouser!
you are right, the cookie option would be useful too.

5
General Software Discussion / 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!

Pages: [1] 2next
Go to full version