RE : RE : [fpc-pascal] Re: URIParser

2011-05-18 Thread Ludo Brands
aid. Ludo -Message d'origine- De : fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] De la part de ik Envoyé : mercredi 18 mai 2011 17:03 À : FPC-Pascal users discussions Objet : Re: RE : [fpc-pascal] Re: URIParser On Wed, May 18, 2011 at 17:56,

Re: RE : [fpc-pascal] Re: URIParser

2011-05-18 Thread ik
On Wed, May 18, 2011 at 17:56, wrote: > > > On Wed, 18 May 2011, Ludo Brands wrote: > > Problem is that the RFC definition for the URI doesn't specify the >> individual protocol scheme. So every protocol can specify it's own stuff. >> >> Take the general sip URI: >> sip:user:password@host:port;u

Re: RE : [fpc-pascal] Re: URIParser

2011-05-18 Thread michael . vancanneyt
On Wed, 18 May 2011, Ludo Brands wrote: Problem is that the RFC definition for the URI doesn't specify the individual protocol scheme. So every protocol can specify it's own stuff. Take the general sip URI: sip:user:password@host:port;uri-parameters?headers. User can be a telephone number wit

RE : [fpc-pascal] Re: URIParser

2011-05-18 Thread Ludo Brands
mai 2011 16:14 À : FPC-Pascal users discussions Objet : Re: [fpc-pascal] Re: URIParser On Wed, 18 May 2011, ik wrote: > On Wed, May 18, 2011 at 16:49, wrote: >> So, how to distinguish between the two ? >> >> sip:mysec...@mydomain.com >> >> Is "sip"

Re: [fpc-pascal] Re: URIParser

2011-05-18 Thread michael . vancanneyt
On Wed, 18 May 2011, ik wrote: On Wed, May 18, 2011 at 16:49, wrote: So, how to distinguish between the two ? sip:mysec...@mydomain.com Is "sip" the protocol or the user name for a HTTP address ? sip is the protocol, mysecrect is the user name sip::mysecr...@mydomain.com according t

Re: [fpc-pascal] Re: URIParser

2011-05-18 Thread Felipe Monteiro de Carvalho
It should assume that sip is a protocol, like it does now. I think that: URI := ParseURI('sip:b...@example.com'); Should output this: Protocol: sip Username: bob Password: Host: example.com Port: 0 Path: Document: Params:

Re: [fpc-pascal] Re: URIParser

2011-05-18 Thread ik
On Wed, May 18, 2011 at 16:49, wrote: > > > On Wed, 18 May 2011, ik wrote: > > On Wed, May 18, 2011 at 16:08, Marco van de Voort >> wrote: >> >> In our previous episode, michael.vancann...@wisa.be said: >>> > RFC 3986 does talk about such > >>>

Re: [fpc-pascal] Re: URIParser

2011-05-18 Thread michael . vancanneyt
On Wed, 18 May 2011, ik wrote: On Wed, May 18, 2011 at 16:08, Marco van de Voort wrote: In our previous episode, michael.vancann...@wisa.be said: RFC 3986 does talk about such structure of URI as well. Hmmm. How can code distinguish between proto

Re: [fpc-pascal] Re: URIParser

2011-05-18 Thread ik
On Wed, May 18, 2011 at 16:08, Marco van de Voort wrote: > In our previous episode, michael.vancann...@wisa.be said: > > > > > > RFC 3986 does talk about such > structure > > > of URI as well. > > > > Hmmm. > > > > How can code distinguish between > > > > prot

RE : [fpc-pascal] Re: URIParser

2011-05-18 Thread Ludo Brands
7;origine- De : fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] De la part de michael.vancann...@wisa.be Envoyé : mercredi 18 mai 2011 15:12 À : FPC-Pascal users discussions Objet : Re: [fpc-pascal] Re: URIParser On Wed, 18 May 2011, ik wrote: > On

Re: [fpc-pascal] Re: URIParser

2011-05-18 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: > > > > RFC 3986 does talk about such structure > > of URI as well. > > Hmmm. > > How can code distinguish between > > protocol:something@somesite > > and > password:something@somesite > > ? The sec

RE : [fpc-pascal] Re: URIParser

2011-05-18 Thread Ludo Brands
rg [mailto:fpc-pascal-boun...@lists.freepascal.org] De la part de michael.vancann...@wisa.be Envoyé : mercredi 18 mai 2011 14:50 À : FPC-Pascal users discussions Objet : Re: [fpc-pascal] Re: URIParser On Wed, 18 May 2011, ik wrote: > I've created a more simple example: > > program uri_test;

Re: [fpc-pascal] Re: URIParser

2011-05-18 Thread michael . vancanneyt
On Wed, 18 May 2011, ik wrote: On Wed, May 18, 2011 at 15:50, wrote: On Wed, 18 May 2011, ik wrote: I've created a more simple example: program uri_test; uses URIParser; var URI : TURI; begin You don't specify the protocol. a URI starts always with "protocol://" so http://sip:

Re: [fpc-pascal] Re: URIParser

2011-05-18 Thread ik
On Wed, May 18, 2011 at 15:50, wrote: > > > On Wed, 18 May 2011, ik wrote: > > I've created a more simple example: >> >> program uri_test; >> uses URIParser; >> >> var >> URI : TURI; >> >> begin >> > > You don't specify the protocol. > > a URI starts always with "protocol://" > > so http://sip:

Re: [fpc-pascal] Re: URIParser

2011-05-18 Thread michael . vancanneyt
On Wed, 18 May 2011, ik wrote: I've created a more simple example: program uri_test; uses URIParser; var URI : TURI; begin You don't specify the protocol. a URI starts always with "protocol://" so http://sip:b...@example.com/ The URIParser unit expects the protocol to be in place. Mi