On 29 Jan 2013, at 13:01, Camillo Bruni <[email protected]> wrote:

> Am I correct in the assumption that ZnURL does not support a password in the 
> url authority?
> 
> 'http://username@domain:1234/path?query_string#fragment_id' asZnUrl
> vs
> 'http://username:password@domain:1234/path?query_string#fragment_id' asZnUrl
> 
> where the latter one fails. Then I just realized that 
> 
> 'http://username@domain:1234/path?query_string#fragment_id' asZnUrl host = 
> 'username@domain'
> 
> I would have expected it to return only 'domain'.

You are correct: username/password in URLs is not something that is supported 
by ZnUrl, by design actually.

Why do you need it ?

What would you do with it, expect to happen ?

You can always do

        ZnClient new
                url: 'http://domain:1234/path?query_string#fragment_id';
                username: 'username' password: 'password';
                get.

I guess it would not be impossible to extend ZnUrl, but it will make for an 
uglier object and parser….

ZnUrl started life as a clone from WAUrl from Seaside, and they don't support 
that either.

Sven

--
Sven Van Caekenberghe
http://stfx.eu
Smalltalk is the Red Pill


Reply via email to