� ���, 10.03.2002, � 02:05, Andrej Borsenkow �������: > To authenticate against Microsoft ISA server user needs to specify name > as NTDOMAIN\NTUSER; in addition password contains space. Attempt to set > these in procy url, i.e. > > export http_proxy=http://ntdomain\ntuser:ntpass@.../ > > fails, moreover it fails independently if I try to set them as > url-encoded or not. > > The problem is that > > - for clear text values wget encodes some characters > - for URL-encoded values wget does _not_ decode them becaue they are > "unsafe" or "reserved" ... > > I understand that there is no ideal solution, it can't be known if URL > is already encoded or not. Still, in case of proxy, it is very unlikely > that users use encoding; almost for sure they would use real names here. > > The final aim is to provide single proxy definition for several > programs. I have patches for curl and rsync but the only program that > currently claims to support proxy user/pass in URL fails :-) >
The attached patch (wget-1.8.1) fixes it. It always interprets at least proxy user name and password as URL encoded strings and decodes them before use. It allows you to specify anything including ':' and '@' as part of name and/or password. Documentation patch included. Strictly speaking host/port part of proxy URL should be decoded as well but hopefully nobody ever comes to idea to specify them URL-encoded :-) -andrej
wget-1.8.1-reencode_user_passwd.patch.bz2
Description: application/bzip
