[fpc-pascal] Re: URIParser
Ludo Brands
ludo.brands at free.fr
Wed May 18 15:06:57 CEST 2011
>> 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:mduerst at ifi.unizh.ch or
news:comp.infosystems.www.servers.unix. The SIP URI is
sip:user:password at host:port;uri-parameters?headers and
sips:user:password at host:port;uri-parameters?headers for secure sip
(http://tools.ietf.org/html/rfc3261#page-148).
Ludo
-----Message d'origine-----
De : fpc-pascal-bounces at lists.freepascal.org
[mailto:fpc-pascal-bounces at lists.freepascal.org] De la part de
michael.vancanneyt at wisa.be
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:bob@example.com/
The URIParser unit expects the protocol to be in place.
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal at lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list