Validating an URI

This tutorial describes the steps to validate an URI.

Check the validity of components within an URI using TUriParser8::Validate() .
Note: This function validates only SIP and SIPS scheme components.
       _LIT8( KUri,"http://web.intra/Dev/Sysdoc/devlib.htm" );
TUriParser8* parser;
//validate the parsed URI
TInt result = parser->Validate();
TUriParser8::Validate() returns:
  • KErrNone , if the URI is shown as valid.

  • KUriUtilsErrInvalidUri , if the URI is shown as invalid.

  • KErrNotSupported , if the URI cannot be shown as valid.