New FSPlugin : HTTP Browser

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

New FSPlugin : HTTP Browser

Post by *fabiochelly »

This plugin allows you to connect to a standard HTTP website and browse links and pictures as with FTP connections.
This could be useful to download many pictures or downloadable files from a webpage.

Version: 1.0 Beta
Archive size: 177 KB
Type: FileSystem
You can download it here: http://totalcommander.free.fr/fabio/hbrowser.zip
Last edited by fabiochelly on 2003-02-27, 14:47 UTC, edited 1 time in total.
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Looks nice, but there is a problem with file names containing slashes, e.g. "images/top.logo.gif". Such files can neither be viewed nor downloaded. When TC sends a download request, you should change the output file name - TC will notice that now and react accordingly.

Second problem: You cannot view html pages! Solution: Instead of reporting them as dirs, report them as links! This way both F3 and Enter should work.
Author of Total Commander
https://www.ghisler.com
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

Instead of reporting them as dirs, report them as links
That's what I was searching for 2 days ! How can I report an item as a link ? I just have to give him extension .lnk ?
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
Tsunulukai
Junior Member
Junior Member
Posts: 66
Joined: 2003-02-07, 23:44 UTC

Post by *Tsunulukai »

another problem... it doesn't support Proxies... :(
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I was giving you the wrong advice. Just report them as files, then react to FsExecuteFile by returning FS_EXEC_SYMLINK, and passing the FULL name to the new location in RemoteName. It should be sufficient to return FS_EXEC_SYMLINK in your case, because the name should already contain the correct target.
Author of Total Commander
https://www.ghisler.com
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

Thanks. It will much easier to program with links.

I didn't find any help about FsExtractCustomIcon. What are the parameters?
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is a new function in TC 5.51. You can get the specifications here now.
Author of Total Commander
https://www.ghisler.com
Tsunulukai
Junior Member
Junior Member
Posts: 66
Joined: 2003-02-07, 23:44 UTC

Post by *Tsunulukai »

I get an
"Access violation at address 77C0D988. Read of address 000000000C.
Please report......"

each time I try to view (F3) a file....The only time it was working was when the file was in the same dir than the HTML file...
{
"../images/BottomBanner656x65.jpg"
"../images/arrow_blue.gif"
"http://localhost/images/banners700x80/E_01.gif"
"script/webcam.js"
}
---> not working


But I can nevertheless copy them without problems on my disk.
Also, editing a file doesn't work when the file isn't in the same subdir...
actually, the plugins copy the file to the TC Temp dir (eg: T:\_tc), but try to edit the file as if it address was "T:\_tc\httppath\filename" instead of "T:\_tc\filename"
eg : a file called "../images/arrow_blue.gif"
is copied locally as "T:\_tc\arrow_blue.gif"
but the editor is lanched with "T:\_tc\../images/arrow_blue.gif" as path to the file it has to open...
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

I didn't implement Editing and Listing for the moment.
It will be done for the final 1.0 release.

Actually, this plugin authorize browsing and getting files only.
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
bago
Member
Member
Posts: 102
Joined: 2003-02-05, 12:18 UTC
Location: Italy
Contact:

Post by *bago »

2Fabiochelly
That's GREAT! :mrgreen:

What about an integration with Lister HTML viewer and quickviewpane (CTRL-Q)?

I'm thinking at browsing a website with the HTTP plugin and having the possibility to preview the real html content with the lister plugin.

2nd: When I'm in a folder I should be able to have a file containing the full html parsed (so with F3 I should view it in Lister) (a sort of virtual file called for example "PAGE_SOURCE")
License #55385
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

You'll have it soon by clicking F3 on the link before entering it
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
fnheiden
Senior Member
Senior Member
Posts: 234
Joined: 2003-02-16, 12:06 UTC
Location: Dresden, Germany
Contact:

Post by *fnheiden »

Looks great! Thank you for sharing it :D

I have one small suggestion: How about remembering the last visited document to enable full Backspace functionality?

[edit]Forget about it - I've even seen, that it's already implemented :oops: [/edit]

Regards,
~ Florian
User avatar
pdavit
Power Member
Power Member
Posts: 1529
Joined: 2003-02-05, 21:41 UTC
Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
Contact:

Re: New FSPlugin : HTTP Browser

Post by *pdavit »

fabiochelly wrote:This plugin allows you to connect to a standard HTTP website and browse links and pictures as with FTP connections.
This could be useful to download many pictures or downloadable files from a webpage.
Thanks for the tool Fabiochelly. As time goes by and improved versions are released I predict that this plugin will become very popular! ;)
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

Thanks.
This is my first plugin and I hope it will be useful for TC users.
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

New version available:

Version: 1.0 Beta 2
Archive size: 179 KB
Type: FileSystem
You can download it here: http://totalcommander.free.fr/fabio/hbrowser.zip

Changes:
- Replace folders by links
- You can now edit with F3
- You can download any kind of file (webpage or else)
Last edited by fabiochelly on 2003-02-27, 14:47 UTC, edited 1 time in total.
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
Post Reply