This method connects to the HTTP(S) server

[Visual Basic]   [ Boolean = ]imagekitcontrolname.File.HTTPConnect(ServerName As String, ProxyName As String, PortNo As Integer, HTTPS As Boolean, UserName As String, Password As String)
[Visual C++]     [ BOOL = ]imagekitcontrolname.GetFile().HTTPConnect(LPCTSTR ServerName, LPCTSTR ProxyName, short PortNo, BOOL HTTPS, LPCTSTR UserName, LPCTSTR Password)
[VB.NET]   [ Boolean = ]imagekitcontrolname.File.HTTPConnect(ServerName As String, ProxyName As String, PortNo As Short, HTTPS As Boolean, UserName As String, Password As String)
[C#.NET]   [ bool = ]imagekitcontrolname.File.HTTPConnect(string ServerName, string ProxyName, short PortNo, bool HTTPS, string UserName, string Password)

Parameters

Name Explanation
ServerName The name of the HTTP(S) server or IPAddress
ProxyName The Proxy Server IP Address
PortNo Port Number (default HTTP port is 80; default HTTPS port is 443)
HTTPS Sets the type of server [False (zero): HTTP, True (nonzero): HTTPS]
UserName The username needed to access the HTTP(S) server
Password The password needed to access the HTTP(S) server

Return Value

Returns True (nonzero) if successful. Returns False (0) if unsuccessful.

Explanation

The HTTPConnect method connects to the HTTP(S) server. This method can only be executed from the client computer. It does not operate on the server. After this method has connected to the HTTP(S) server, it is possible to use the HTTPGetFileEx and the HTTPPutFileEx methods.

When not using a proxy server set the ProxyName to an empty string, to vbNullString(Visual Basic), to NULL(Visual C++), to Nothing(VB.NET), or null(C#.NET).

 

The ImageKit10 ActiveX is a product created by Newtone Corporation