[fpc-pascal] Re: URIParser

ik idokan at gmail.com
Wed May 18 15:46:18 CEST 2011


On Wed, May 18, 2011 at 16:49, <michael.vancanneyt at wisa.be> wrote:

>
>
> 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 ?
>

sip is the protocol, mysecrect is the user name

sip::mysecrect at mydomain.com

according to the RFC is the proper way to have
1. Protocol
2. Empty user name
3. Password
4. Domain


>
> Michael.
>
>
Ido


>  _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110518/44f09487/attachment.html>


More information about the fpc-pascal mailing list