On Wed, 2003-05-28 at 19:29, Alexander V. Lukyanov wrote:
> 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.

Whoo-hoo, victory!

Al-be-it in weird and wonderful ways.

Let me start with a thank you for your patch, however it was not
required in the end.

The short version:
        set hftp:use-type no

The long version:

After applying the patch, the software still didn't work. The Authorized
header was added, but it made no difference. I managed to get my packet
sniffer to print the successful request from Galeon to a text-file and
noticed that there was a space between the file name and the HTTP
header:
        GET ftp://user:[EMAIL PROTECTED]/somefile HTTP/1.1

Where lftp had:

        GET ftp://user:[EMAIL PROTECTED]/somefile;type=i HTTP/1.1

Hunting through the source gave me that there existed a setting called
hftp:use-type, setting it to no, made the ";type=i" disappear and all
was well. This setting does not appear in the manual or any of the
accompanying documentation (that I could find) - although a google
search does turn up documentation about it.

For those reading the archive at some future time:

I'm using tellique or tqrecv as my proxy over port 9202. To get lftp to
talk to the proxy I used the following three settings:

        set ftp:proxy http://127.0.0.1:9202
        set hftp:use-authorization on
        set hftp:use-type no

Thanks to Alexander for the software, the patch and the great support.

Onno Benschop 

Connected via Optus B3 from S33:37'33" - E115:07'30" (Dunsborough, WA)
-- 
()/)/)()        ..ASCII for Onno.. 
|>>?            ..EBCDIC for Onno.. 
--- -. -. ---   ..Morse for Onno.. 

Proudly supported by Skipper Trucks, Highway1, Concept AV, Sony Central, Dalcon
ITmaze   -   ABN: 56 178 057 063   -  ph: 04 1219 8888   -   [EMAIL PROTECTED]

Reply via email to