PowerTCP Web Enterprise for ActiveX

PowerTCP Web Enterprise for ActiveX

$499.00

Overview Powerful HTTP ActiveX Controls Control the web with PowerTCP Web Enterprise for ActiveX. Perfect for automated web searches that require complex HTML parsing and secure file transfers. Web Enterprise includes the most sophisticated HTTP/S COM controls available, backed by the best technical support in the industry.   Perform HTTP/S Requests Including GET, POST, HEAD and more Get web pages, traverse sites and download files to disk or memory Upload files and automate form submissions Blocking and non-blocking (asynchronous) operation Progress event reports data transfer rate and statistics Send any command to the server, including custom commands Optimized for use in server-side ASP pages Feature-Rich ActiveX Controls Flexible cookie handling Resume interrupted downloads Add custom headers to any request International character support Log event for session logging and debugging URL cracking parses addresses into parts   Security and Proxy Support SSL2, SSL3, PCT, TLS support for stream-level security Client-side and server-side authentication options Real-time certificate acceptance or rejection Basic HTTP Authentication Firewall and proxy support, including SOCKS and HTTP CONNECT Selective Proxy bypass support Samples and Documentation Stand-alone and online documentation Many sample projects, including VB6 and VC++ VC++ Wrapper classes included for easy integration COM+ Royalty-free license   Features Included With Web Enterprise for ActiveX Component Description WebAsp Control Wininet-independent server-safe HTTP/HTTPS control. Http Control WinInet-dependent HTTP/HTTPS control. WebPage Object A powerful HTML parser, searcher, and resource collector.   Web and Http drag and drop controls deliver HTTP/S transport functionality to your application WebPage object provides sophisticated web page parsing, including page resources and tables Many additional objects for handling SSL certificates, cookies, posted variables and more DartStream object for streaming data to and from a file Convenient DartStrings collection for working with string lists Sample projects for VB6, VC++, C# and more Debug Server application for debugging and protocol testing Comprehensive stand-alone MS Help and online documentation Free email support during subscription period   Supported Environments Operating Systems: XP, Windows Server 2003, Vista, 2008, Windows 7 Requires Internet Explorer 4.0+. PowerTCP Web Enterprise for ActiveX can be used in the following development environments: Visual Basic Visual C++ FoxPro ASP VBScript (wscript, cscript, etc) MS Office VBA   Visual BasicLooking to integrate HTTP into Visual Basic? PowerTCP Web Enterprise for ActiveX contains 8 full sample projects for Visual Basic.   Visual C++PowerTCP Web Enterprise for ActiveX includes C++ wrapper classes to make HTTP integration into C++ even easier. In addition, 5 full sample projects are included.   Code Examples pullpage     Release History pullpage   Online Documentation WebASP ActiveX Control (HTTP and HTTPS) WebASP ActiveX Control (HTTP and HTTPS) Use the WebASP control to communicate with Web Servers using HTTP and HTTPS. The WebASP control differs from the PowerTCP Http control in the following ways: It is WinInet independent, making this control suitable for high-performance web server applications It uses an intuitive WebMessage object to represent HTTP Requests and Responses It integrates with the WebPage object, providing powerful HTML parsing and resource collecting   Features include: Easily Get a complete web page with one method call Post files to the server using the PostedFile property Use the WebPage object to gather HTML resources and to parse HTML Cookie object makes it easy to create and send cookies within your code Secure (HTTPS) connections fully supported Customize certificate handling Client authentication fully supported     Development Environments Visual Basic (VB) Visual C++ (VC++) Delphi ASP MS Office Visual Studio .NET (COM Interop) more     Code Example How easy is the WebASP control to use? Check out the following VB example below, which gets an HTML file and saves it to disk.   'Reset the Request MessageWebASP1.Request.Content = ""'Get a fileWebASP1.Request.Url = "www.test.com/testweb.html"WebASP1.Get'Check the resultIf WebASP1.Response .Status = 200 Then     'Good response from server    'Save it to a file    WebASP1.Response.Body.Filename = "C:\temp\TestWeb.txt"End If  Http ActiveX Control (HTTP and HTTPS) Http ActiveX Control (HTTP and HTTPS) The Http control is used to communicate (send GET and POST requests) with HTTP and HTTPS servers. Features include:   Full support for Secure connections Easily Get a complete web page with one method call Simulate form posts Send cookies or custom headers Post data and files     Development Environments  Visual Basic (VB) Visual C++ (VC++) Delphi ASP MS Office Visual Studio .NET (COM Interop)     Code Example How easy is the Web Control to use? Check out the following VB example, which gets an HTML file and displays its contents.   Dim Orderform As StringHttp1.Timeout = 20000 'Give it 20 seconds to completeHttp1.Url = "http://www.dart.com/" 'Specify the URL to GETHttp1.Get Orderform 'Send a GET request, Orderform will be filled with dataText1.Text = Orderform 'The HTML code for the web site appears in the text box WebPage Object WebPage Object The WebPage object is used to represent an HTML page for parsing and resource collecting. Features include: Full integration with the WebASP control - get a page and parse it Get all images, links, meta-content, or other HTML resource on a page Parse locally saved HTML documents Powerful HTML table parsing (such as grabbing the value of a cell) Find content between two tokens   Development Environment The WebPage object can be used in many development environments including: Visual Basic (VB) Visual C++ (VC++) Delphi ASP MS Office Visual Studio .NET (COM interop)     Code Example How easy is the WebPage object to use? Check out the following VB example below, which demonstrates getting and saving all images on a web page.   'WebPage object to use for parsingDim WebPage1 As New WebPageDim blnResult As Boolean'Set Request urlWebASP1.Request.Url = "www.dart.com"'Get the pageWebASP1.Get'Set webpage source to html source from ResponseWebPage1.Source = WebASP1.Response.Body.ReadString'Iterate through WebResources, be sure to set WebPage.UrlHost firstWebPage1.UrlHost = WebASP1.Request.UrlFor i = 1 To WebPage1.Resources.Count    If WebPage1.Resources.Item(i).UrlType = resImg Then        'This WebResource is an image, so write to file        blnResult = WebPage1.Resources(i).Get("C:\temp\img", True, 30000)        If blnResult = True Then            List1.AddItem WebPage1.Resources(i).UrlName & " is saved"        End If    End IfNext Get a Page or File Code Example Get a Page or File Code Example The following example demonstrates a Get using the Web control. The page or file is saved to disk once it is retrieved. Progress is displayed in a log.   Private Sub buttonGet_Click()    GetPage("www.dart.com/myImage.jpg", App.Path & "\myImage.jpg")End Sub Private Sub GetPage(ByVal url As String, ByVal filename As String)    'Reset the Request Message.    Web1.Request.Content = ""    'Get the page or file.    Web1.Request.url = url    Web1.Get    'Save the file to disk.    Web1.response.Body.filename = filenameEnd Sub Private Sub Web1_Progress(ByVal Method As DartWebASPCtl.WebMethodConstants, _    ByVal Status As DartWebASPCtl.WebStatusConstants, ByVal Count As Long, _    ByVal Size As Long)    'Show progress during the Get.    If Method = webGet And Status = webReceiving Then        textLog.Text = textLog.Text + CStr(Count) + " of " + CStr(Size)        textLog.Text = textLog.Text + + " bytes transferred." + vbCrLf    End IfEnd Sub Post Data Code Example Post Data Code Example The following example demonstrates a data Post using the Web control. The function creates a data string from the parameters passed in and submits it to the specified URL.   Private Function PostData(ByVal url As String, ByVal name As String, _    ByVal company As String, ByVal quantity As Integer)    'Set URL of the page to post to.    Web1.Request.url = url    'Add data variables to the Request.    Web1.Request.Variables("name") = name    Web1.Request.Variables("company") = company    Web1.Request.Variables("quantity") = CStr(quantity)    'Submit the data.    Web1.Post    'Return response.    Dim response As String    response = GetVersion(Web1.response.version) + " "    response = response + CStr(Web1.response.Status)    response = response + " " + Web1.response.StatusText + vbCrLf    response = response + Web1.response.Header.All + vbCrLf    response = response + Web1.response.Body.ReadString    PostData = responseEnd Function Private Function GetVersion(ByVal version As WebVersionConstants)    GetVersion = ""    If version = webHTTP10 Then GetVersion = "HTTP/1.0"    If version = webHTTP11 Then GetVersion = "HTTP/1.1"End Function Upload a File Code Example Upload a File Code Example The following example demonstrates a file upload using the Web control. Uploading files requires a multipart MIME message, which are created automatically by the Web control. Contrast this with the PowerTCP Http control, which requires the developer to create the MIME message manually.   Private Function PostFile(ByVal url As String, ByVal filename As String)    'Open file to read and post.    Dim file As New DartStream    file.FileMode = createExisting    file.filename = filename    file.Ref = "file1"    file.Position = 0    'Add file to files to post collection.    Dim files As New DartStreams    files.Add file    Web1.Request.FilesToPost = files    'Send Post and get server response.    Web1.Request.url = url    Web1.Post    'Return response.    Dim response As String    response = GetVersion(Web1.response.version) + " "    response = response + CStr(Web1.response.Status)    response = response + " " + Web1.response.StatusText + vbCrLf    response = response + Web1.response.Header.All + vbCrLf    response = response + Web1.response.Body.ReadString    PostData = responseEnd Function Private Function GetVersion(ByVal version As WebVersionConstants)    GetVersion = ""    If version = webHTTP10 Then GetVersion = "HTTP/1.0"    If version = webHTTP11 Then GetVersion = "HTTP/1.1"End Function Get Page Images Code Example Get Page Images Code Example The following example demonstrates using the WebPage object to retrieve all images on a web page.   Private Sub Command4_Click()    GetImages "www.dart.com/default.aspx"End Sub Private Sub GetImages(ByVal url As String)    'Get the page.    Web1.Request.url = url    Web1.Get    'Set the web page source.    Dim WebPage1 As New WebPage    WebPage1.Source = Web1.response.Body.ReadString    'Get and list images.    Dim result As Boolean    WebPage1.UrlHost = Web1.Request.url    For i = 1 To WebPage1.Resources.Count        If WebPage1.Resources.Item(i).UrlType = resImg Then            result = WebPage1.Resources(i).Get(App.Path + "\images", True, 10000)            If result = True Then                listImages.AddItem WebPage1.Resources(i).UrlName            End If        End If    NextEnd Sub

Show More Show Less