diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-A8F13E5A-56F2-5C72-AF81-5AC062B94C6C.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-A8F13E5A-56F2-5C72-AF81-5AC062B94C6C.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,66 @@ + + + + + +Using +URI Utilities +

This tutorial describes the steps to use URI utilities.

+
Introduction

UriUtils class checks +URIs for invalid characters and has both 8 and 16-bit variants. It provides +additional utilities for CUri8 and CAuthority8 classes. +The method used to check URIs is HasValidChars(), which is +passed through descriptor data to check and return a boolean indicating whether +invalid characters were found or not.

You can create URI (CUri8 object) +from a Unicode descriptor using UriUtils::CreateUriL(). +Refer to Creating an +URI for details.

+
Validating URI for invalid characters

HasInvalidChars() checks +for any excluded (also called invalid) characters in the URI to validate the +invalid characters. The following are set of invalid characters:

+ + + +Category +Character set + + + + +

Control characters

+

Values 0x00 to 0x1F and greater +than 0x7F

+
+ +

Space

+

0x20

+
+ +

Delimiters

+

'<', '>', '#', '%', '"'

+
+ +

Unwise characters

+

' {', '}', '|', '\', '^', '[', ']', '`'

+
+ + +
+
Validating URI for valid host

HostType() validates +the URI for the following valid host types as defined in TUriHostType:

    +
  • IPv6, for example, 1080:0:0:0:8:800:200C:417A

  • +
  • IPv4, for example, 192.168.202.18

  • +
  • Text form, for example, www.mywebpage.com

  • +
+
+HTTP Utilities +Library Overview +Creating +an URI +
\ No newline at end of file