I've created a more simple example: program uri_test; uses URIParser;
var URI : TURI; begin URI := ParseURI('sip:b...@example.com'); writeln('URI:'); writeln(#9'Protocol: ', URI.Protocol); writeln(#9'Username: ', URI.Username); writeln(#9'Password: ', URI.Password); writeln(#9'Host: ', URI.Host); writeln(#9'Port: ', URI.Port); writeln(#9'Path: ', URI.Path); writeln(#9'Document: ', URI.Document); writeln(#9'Params: ', URI.Params); writeln(#9'Bookmark: ', URI.Bookmark); writeln(#9'HasAuthority: ', URI.HasAuthority); end. The output is: URI: Protocol: sip Username: Password: Host: Port: 0 Path: Document: b...@example.com Params: Bookmark: HasAuthority: FALSE Ido On Wed, May 18, 2011 at 15:25, ik <ido...@gmail.com> wrote: > Hello, > > I have tried to use the URIParser on a structure like so: > > sip:ik@10.0.0.2:5060;name=test?header=something > > That's the most complicated SIP URI according to the RFC (3261). > > But the record was able to just return to me the protocol (sip) and nothing > else. > Does the unit implement it according to the URI RFC ? if so, what version > of that (2396 or 3986) ? > > > Thanks, > > Ido > > > LINESIP - Opening the source for communication > http://www.linesip.com > http://www.linesip.co.il > > >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal