Gets the normalized version of the given HTTP path.

Namespace: VcClient
Assembly: VcClient (in VcClient.dll) Version: 1.0.0.0 (1.8.400.4142)

Syntax

C#
public static string NormalizeHttpPath(
	string httpPath
)
Visual Basic
Public Shared Function NormalizeHttpPath ( _
	httpPath As String _
) As String
Visual C++
public:
static String^ NormalizeHttpPath(
	String^ httpPath
)

Parameters

httpPath
Type: String
HTTP path to normalize.

Return Value

Normalized HTTP path.

Examples

For example:
CopyC#
string normalizedPath = VC.NormalizeHttpPath("https://be.cosmos04.osdinfra.net:88/cosmos/cosmosAdmin/my/sample.txt");
Console.WriteLine(normalizedPath); // prints: "http://cosmos04.osdinfra.net/cosmos/cosmosAdmin/my/sample.txt"

Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when httpPath is null or empty
VcClientExceptions..::..VcClientExceptionThrown when the normalize operation fails.

See Also