[fpc-pascal] Re: URIParser
ik
idokan at gmail.com
Wed May 18 14:38:54 CEST 2011
I've created a more simple example:
program uri_test;
uses URIParser;
var
URI : TURI;
begin
URI := ParseURI('sip:bob at 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: bob at example.com
Params:
Bookmark:
HasAuthority: FALSE
Ido
On Wed, May 18, 2011 at 15:25, ik <idokan at gmail.com> wrote:
> Hello,
>
> I have tried to use the URIParser on a structure like so:
>
> sip:ik at 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110518/cd7c01b3/attachment.html>
More information about the fpc-pascal
mailing list