<div dir="ltr"><div class="gmail_quote">On Wed, May 18, 2011 at 17:56,  <span dir="ltr"><<a href="mailto:michael.vancanneyt@wisa.be">michael.vancanneyt@wisa.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im"><br>
<br>
On Wed, 18 May 2011, Ludo Brands wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Problem is that the RFC definition for the URI doesn't specify the<br>
individual protocol scheme. So every protocol can specify it's own stuff.<br>
<br>
Take the general sip URI:<br>
sip:user:password@host:port;uri-parameters?headers. User can be a telephone<br>
number with folowing definition: global-phone-number   = "+"<br>
base-phone-number [isdn-subaddress]<br>
                       [post-dial] *(area-specifier /<br>
                       service-provider / future-extension)<br>
Or<br>
local-phone-number    = 1*(phonedigit / dtmf-digit /<br>
                       pause-character) [isdn-subaddress]<br>
                       [post-dial] area-specifier<br>
                       *(area-specifier / service-provider /<br>
                       future-extension)<br>
This definitely will require custom processing.<br>
Also both uri-parameters and headers are name=value pairs. The first are<br>
separated by ";" and the second by "&"...<br>
<br>
I'm afraid a universal URI decoder isn't possible.<br>
</blockquote>
<br></div>
Great. In that case I just declare that URIParser will only work for ftp and http<br>
protocols :-)</blockquote><div><br>I think it is possible. You can also add another field to the record of "Extra data" and allow others to parse it.<br>the headers are like the HTTP URI (even the encoding of it is the same), and the params are like the HTTP Post more or less but divided by a semicolon.  But I can work with parsing it myself imho, because that part is either starting with question mark or by semicolon.<br>

 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5"><br>
<br>
Michael.<br></div></div></blockquote><div><br>Ido<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div class="h5">
_______________________________________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br></div>