Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Mimic FireFox or Internet ExplorerDownload: Chilkat .NET Assemblies C# example showing how make it appear as though a request originated from FireFox or Internet Explorer. Chilkat.Http http = new Chilkat.Http(); bool unlocked = http.UnlockComponent("Any string begins 30-day trial"); if (!unlocked) { MessageBox.Show("Failed to unlock HTTP component"); return; } // Chilkat HTTP .NET provides two properties to make it easy to mimic // Mozilla FireFox or Internet Explorer: MimicFireFox and MimicIE. // If one is set to true, then Chilkat HTTP will automatically set the // request headers to appropriate values such that from the HTTP server's // perspective, it appears as though an interactive browser has accessed // a page. This feature only applies to requests made via the QuickGet // and QuickGetStr methods. http.MimicFireFox = true; string htmlPage = http.QuickGetStr("http://www.apple.com/"); if (htmlPage == null) { MessageBox.Show(http.LastErrorText); } else { textBox1.Text = htmlPage; } Important: The download for this
example does not contain the ChilkatDotNet2.dll which |
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.