Class wwHTTP |
wwIPStuff::cServer |
wwIPStuff::nHTTPPort |
wwIPStuff::lSecureLink |
wwHTTP::nhttpconnecttype |
West Wind Internet Protocols 4.68 |
wwHTTP::HTTPConnect
|
Syntax: |
o.httpconnect(lcServer, lcUsername, lcPassword, llHTTPS) |
| Return: | 0 on success, an API error number on failure. Check cErrorMsg for an error string. |
| Parameters: |
All parameters are optional if the appropriate property names are set. lcServer Examples: www.west-wind.com, 111.111.111.111 Note: Do not specify a URL here. This parameter should not include a protocol or port! Do not use http://www.west-wind.com/sompage.htm - if you want to specify a single URL use the HTTPGet() method. Corresponds to cServer property. lcUsername lcPassword Note: In order for Basic Authentication to work on the server it must be enabled there! Make sure you test this with a browser before trying this functionality programmatically. llHTTPS |
| Remarks: | HTTPConnect() does not actually connect to the server - it builds a WinInet connection object only. The actual Web access doesn't occur until HTTPGetEx is actually called. The nHTTPConnectMode property determines how the connection is created. The default is a direct connection, but you can also configure for Proxy or IE configurations. |
See also: