[fpc-pascal] Re: URIParser

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Wed May 18 15:49:40 CEST 2011



On Wed, 18 May 2011, ik wrote:

> On Wed, May 18, 2011 at 16:08, Marco van de Voort <marcov at stack.nl> wrote:
>
>> In our previous episode, michael.vancanneyt at wisa.be said:
>>>>
>>>> RFC 3986 <http://tools.ietf.org/html/rfc3986> does talk about such
>> structure
>>>> of URI as well.
>>>
>>> Hmmm.
>>>
>>> How can code distinguish between
>>>
>>> protocol:something at somesite
>>>
>>> and
>>> password:something at somesite
>>>
>>> ?
>>
>> The second is not an uri ?
>>
>
> It is, but as far as I understand, you can not have a password without a
> user according to RFC3986 <http://tools.ietf.org/html/rfc3986#section-3.2>

So, how to distinguish between the two ?

sip:mysecret at mydomain.com

Is "sip" the protocol or the user name for a HTTP address ?

Michael.



More information about the fpc-pascal mailing list