Re: [tclwebtest] [Fwd: Re: tclwebtest http authentication]
Status: Abandoned
Brought to you by:
tils
From: Grzegorz A. H. <gr...@ef...> - 2003-02-17 17:33:38
|
On Sun, Feb 16, 2003 at 02:37:22AM -0800, Chris Rasch wrote: > > Thanks for writing tclwebtest and making it available under > > the GPL. I was wondering if tclwebtest can handle basic http > > authentication? A cursory glance through the code suggests no, > > but I was wondering if I had missed something. > > It doesn't handle it unfortunately. You are free to add it > of course, patches are welcome ;-). I don't know if the tcl > http package can handle it - in any way the place to add that > functionality would be within the do_request proc by modifying > the headers variable I think. Chris, I talked with Til in IRC and maybe for tomorrow you could have a patch supporting this. Basically it would add the following function to the api: http_auth prefix_url user pass It would set the user/pass for that prefix_url. Since .htaccess can change for each directory, you could have different prefix_url with the same domain, and tclwebtest would search first the longest matching prefix, and use the user/pass directly notifying of this in the output log. Do you consider this ok? Maybe we left out something. -- Grzegorz Adam Hankiewicz, gr...@ef.... Tel: +34-94-472 35 89. eFaber SL, Maria Diaz de Haro, 68, 2 http://www.efaber.net/ 48920 Portugalete, Bizkaia (SPAIN) |