I've created a more simple example:
program uri_test;
uses URIParser;
var
URI : TURI;
begin
URI := ParseURI('');
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:
Params:
Bookmark:
HasAuthority: FALSE
Ido
ik wrote 25 lines
Hello,
I have tried to use the URIParser on a structure like so:
;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