<div dir="ltr"><br>
<br><br><div class="gmail_quote">On Thu, May 19, 2011 at 15:38, Ben <span dir="ltr"><<a href="mailto:ben.smith.lists@gmail.com">ben.smith.lists@gmail.com</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">On 18/05/2011 16:56, <a href="mailto:michael.vancanneyt@wisa.be">michael.vancanneyt@wisa.be</a> wrote:<br>
><br>
> Great.<br>
> In that case I just declare that URIParser will only work for ftp and http<br>
> protocols :-)<br>
<br>
</div>What about file protocols like the 'text/uri-list' mime type? Such as<br>
what X11's XDND uses when you drag and drop from a local application<br>
window to a remote application window? In such cases one should supply<br>
the username and password with the origin host. Or like Qt4 DND and<br>
newer Windows DND applications uses.<br>
<br>
eg: text/url-list mime type<br>
<br>
file://ben:password@192.168.0.14:/home/ben/myfile.txt<br>
<br>
<br>
I presume (though that always tends to be a bad thing) that because<br>
text/uri-list [as in my example above] should be ok with the FPC<br>
URIParser because it has the protocol 'file://' in the front - so<br>
authority info shouldn't be a problem? After all, file:// is pretty much<br>
identical to ftp:// URI syntax.<br></blockquote><div><br>After a lot of careful investigation and mostly reading, I think that you can not really create a general purpose URI parser.<br>It seems though that the FPC implementation is a *URL* and not a full URI parser, and I think it's better to document about it further. <br>
For example there are no URN support at all and it works only for specific type of URL that are mostly common, like the example you placed here.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
<br>
<br>
--<br>
<font color="#888888"><br>
Ben.<br></font></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;"><font color="#888888">
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">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><br><br><br clear="all"><div dir="ltr">LINESIP - Opening the source for communication<br><a href="http://www.linesip.com/" target="_blank">http://www.linesip.com</a><br><a href="http://www.linesip.co.il/" target="_blank">http://www.linesip.co.il</a><br>
<br></div><br></div>