TC7.02a/FTP Download from list/Header attributes not cleared

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

TC7.02a/FTP Download from list/Header attributes not cleared

Post by *white »

FTP Download from list a file with the following contents:

Code: Select all

header: Referer: http://www.ghisler.com/
header: Referer: http://www.ghisler.com/news.htm
OK-p://www.arachna.com/edu/tutorials/mini/ssi/printenv.html -> result1.htm

header: Referer: http://www.ghisler.com/download.htm
OK-p://www.arachna.com/edu/tutorials/mini/ssi/printenv.html -> result2.htm

header: Referer: http://www.ghisler.com/order.htm
header: Referer: http://www.ghisler.com/addons.htm
http://www.arachna.com/edu/tutorials/mini/ssi/printenv.html -> result3.htm

header: Referer: http://www.ghisler.com/whatsnew.htm
http://www.arachna.com/edu/tutorials/mini/ssi/printenv.html -> result4.htm
This will download result3.htm and result4.htm.
Inside result3.htm and result4.htm you can find what Referer field was passed by Total Commander.

result3.htm

Code: Select all

HTTP_REFERER=http://www.ghisler.com/, http://www.ghisler.com/news.htm, http://www.ghisler.com/download.htm, http://www.ghisler.com/order.htm, http://www.ghisler.com/addons.htm
result4.htm

Code: Select all

HTTP_REFERER=http://www.ghisler.com/whatsnew.htm
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately this cannot be avoided because TC cannot know how many fields back it has to add OK-, sorry.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

ghisler(Author) wrote:Unfortunately this cannot be avoided because TC cannot know how many fields back it has to add OK-, sorry.
You do not have to add OK- for the header lines. Simply reset the header when an OK- line is encountered and you are fine.
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Or alternatively, never reset the header, but add a command which can be used to reset the header. This way you can set the header once for a bunch of URLs and reset the header thereafter. Example:

Code: Select all

header: Referer: http://www.example.com/refererwebpage.htm
http://www.example.com/file1needingrefererpage.dat
http://www.example.com/file2needingrefererpage.dat
http://www.example.com/file3needingrefererpage.dat
http://www.example.com/file4needingrefererpage.dat
header: reset
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, an alternative would be to reset the header not only after a http:// line, but also after an OK- line. What do you think?
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

ghisler(Author) wrote:Hmm, an alternative would be to reset the header not only after a http:// line, but also after an OK- line. What do you think?
That is what I meant by:
You do not have to add OK- for the header lines. Simply reset the header when an OK- line is encountered and you are fine.
Method 1) Reset the header not only after a http:// line, but also after an OK- line
Method 2) Do not reset the header. A special command resets the header.

Method 1 maybe is more intuitive. Method 2 creates much less overhead when the same header attributes are needed for lots of files.

I do not know which method is better. Maybe make it optional ? :lol:

Or maybe implement both. Something like this:

Code: Select all

header: Referer: http://www.example.com/refererwebpage.htm
http://www.example.com/file1needingrefererpage.dat

stickyheader: Referer: http://www.example.com/refererwebpage.htm
http://www.example.com/file2needingrefererpage.dat
http://www.example.com/file3needingrefererpage.dat
http://www.example.com/file4needingrefererpage.dat
stickyheader: reset
or

Code: Select all

header: Referer: http://www.example.com/refererwebpage.htm
http://www.example.com/file1needingrefererpage.dat

header: Referer: http://www.example.com/refererwebpage.htm
header: save
http://www.example.com/file2needingrefererpage.dat
http://www.example.com/file3needingrefererpage.dat
http://www.example.com/file4needingrefererpage.dat
header: reset
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, I have now changed it as proposed (but without stickyheader so far, sorry).
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Tested OK in TC 7.03
gbravo79
New Member
New Member
Posts: 1
Joined: 2009-03-26, 14:40 UTC

include password in download list

Post by *gbravo79 »

Hi All!
I would manage to give employees working on specific files a day, a performed a "download routine" them to get the right files. I would do this with the download list func with TC cause they are capable of using it since years. I installed a password for the company ftp but i dont want everyone to now the passw. Is it posibble to include the encrypted passw in the download list file, to make TC automatically connect them, not asking for the passw? Thx.
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: include password in download list

Post by *white »

gbravo79 wrote:Is it posibble to include the encrypted passw in the download list file...
No, but it might be possible in the next version of Total Commander.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC 7.5 will support it for passwords protected with a master password.
Author of Total Commander
https://www.ghisler.com
Post Reply