>> a URI starts always with "protocol://"

RFC 2396 (http://tools.ietf.org/html/rfc2396 ) specifies that an URI has to
start with the protocol and a colon. The // depends on the protocol scheme.
Valid URI's are for example mailto:[email protected] or
news:comp.infosystems.www.servers.unix. The SIP URI is
sip:user:password@host:port;uri-parameters?headers and
sips:user:password@host:port;uri-parameters?headers for secure sip
(http://tools.ietf.org/html/rfc3261#page-148). 

Ludo

-----Message d'origine-----
De : [email protected]
[mailto:[email protected]] De la part de
[email protected]
Envoyé : mercredi 18 mai 2011 14:50
À : FPC-Pascal users discussions
Objet : Re: [fpc-pascal] Re: URIParser




On Wed, 18 May 2011, ik wrote:

> I've created a more simple example:
>
> program uri_test;
> uses URIParser;
>
> var
>  URI : TURI;
>
> begin

You don't specify the protocol.

a URI starts always with "protocol://"

so http://sip:[email protected]/

The URIParser unit expects the protocol to be in place.

Michael.
_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to