On Thu, Apr 01, 2004 at 11:41:22AM +0000, JUANMARCOSMOREN wrote: > Andrew Pimlott wrote: > > Is there any reason not to normalize the hostname used for looking up > > credentials, as passed to UserAgent->credentials? > > > > It would also be terribly useful to allow undef as a wildcard. > > Actually, I seem to remember reading some discussion about how to > > generalize ->credentials. What's the current thinking? > > I don't understand what are you trying to do. > What's MSIE/Mozilla doing in the same scenario? > Is it also normalizing the hostname?
It's only a matter of normalizing within LWP's own credentials table. So if I say $ua->credentials('example.com:80', ...); and later do $ua->get('http://EXAMPLE.COM/'): the credentials get used. Andrew