Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



How to validate a URI

The validity of components within a URI can checked using TUriParser8::Validate().

_LIT8(KUri,"http://web.intra/Dev/Sysdoc/devlib.htm");
TUriParser8* parser;
TInt result = parser->Validate();  //validate the parsed URI

TUriParser8::Validate() returns:

This function validates only SIP and SIPS scheme components.

To check if the scheme is valid, call TUriC8::IsSchemeValid(). If scheme is not found in the URI, the return value indicates an invalid scheme.


See also

InetProtUtils Overview