On Fri, May 23, 2003 at 02:50:05PM +0800, Onno Benschop wrote:
> It appears that hftp:use-authorization on/off toggles between these two
> methods of authentication.
>
> Is there a way to modify this behaviour without needing to actually
> change the software?
No. But here is the patch. I'll include this change in the next version.
--
Alexander.
Index: Http.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/Http.cc,v
retrieving revision 1.158
diff -u -p -r1.158 Http.cc
--- Http.cc 14 May 2003 11:42:50 -0000 1.158
+++ Http.cc 27 May 2003 06:28:31 -0000
@@ -414,7 +414,7 @@ void Http::SendRequest(const char *conne
if(hftp && user && pass)
{
url::encode_string(user,pfile+strlen(pfile),URL_USER_UNSAFE);
- if(!QueryBool("use-authorization",proxy))
+// if(!QueryBool("use-authorization",proxy))
{
strcat(pfile,":");
url::encode_string(pass,pfile+strlen(pfile),URL_PASS_UNSAFE);