CombineURL

The CombineURL method combines a base and relative URL into a single URL. This method exposes the wininet InternetCombineUrl Function.

Syntax

CombineURL(baseURL, relativeURL, flags, combineResult)

Parameters

baseURL
A string that contains the base URL.
relativeURL
A string that contains the relative URL.
Flags
See the InternetCombineUrl documentation for more details
combineResult
The resulting URL
Return Values

0 if the function succeeds. Otherwise:
ERROR_BAD_PATHNAME (161L) The URLs could not be combined.
ERROR_INSUFFICIENT_BUFFER (122L) The buffer supplied to the function was insufficient or NULL.
ERROR_INTERNET_INVALID_URL (12005), The format of the URL is invalid.
ERROR_INVALID_PARAMETER (87L) There is a bad string, buffer, buffer size, or flags parameter.

Applies To

OCXHttp ASP Component