Poster | Thread |
MasterOfReality
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 19:31:38
| | [ #1 ] |
|
|
|
Regular Member |
Joined: 22-Mar-2003 Posts: 162
From: Unknown | | |
|
| What a brilliant idea.
Thanks. |
|
Status: Offline |
|
|
mlehto
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 19:52:49
| | [ #2 ] |
|
|
|
Super Member |
Joined: 4-Dec-2004 Posts: 1006
From: Unknown | | |
|
| Nice ! |
|
Status: Offline |
|
|
Thematic
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 19:59:27
| | [ #3 ] |
|
|
|
Super Member |
Joined: 28-Oct-2003 Posts: 1616
From: I'm actually flying into a bug! | | |
|
| Quote:
Implements HTTP redirects (301,302) as soft-links - even works with redirects that point to local files. | Is this really safe? _________________ : AmigaOneXE (unmod.) 750FX/512 MB +stuff & AmigaOS 4.(0|1) : A1200/68060&96MB/SCSI/EM1200-Voodoo3 & OS 3.5 : A500/1MB : Pegasos (ff) 512 MB & MorphOS Praise seitan.
|
|
Status: Offline |
|
|
Chris_Y
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 20:08:41
| | [ #4 ] |
|
|
|
Elite Member |
Joined: 21-Jun-2003 Posts: 3205
From: Beds, UK | | |
|
| @Thematic
It doesn't let you access local files that you don't already have access to, if that's what you mean.
@Thread
Thanks. I'm still working on making it asynchronous, currently you get slow responses when trying to access more than one resource at a time, but I thought it was worth uploading in its present state.
Chris Last edited by Chris_Y on 19-Feb-2006 at 08:15 PM.
_________________ "Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion Avatar is Tabitha by Eric W Schwartz
|
|
Status: Offline |
|
|
Hans
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 20:16:43
| | [ #5 ] |
|
|
|
Elite Member |
Joined: 27-Dec-2003 Posts: 5109
From: New Zealand | | |
|
| This should come in handy. With this you could easily write scripts (DOS or Arexx) that download files from websites.
Hans _________________ Join the Kea Campus - upgrade your skills; support my work; enjoy the Amiga corner. https://keasigmadelta.com/ - see more of my work
|
|
Status: Offline |
|
|
amipal
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 20:18:28
| | [ #6 ] |
|
|
|
Super Member |
Joined: 8-Apr-2003 Posts: 1907
From: Saltdean, East Sussex, UK | | |
|
| Very nice. The simplest ideas are the best, as are the ones implemented as AmigaOS expects. _________________ After a decade away from the scene, I am back!
|
|
Status: Offline |
|
|
Bean
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 20:28:09
| | [ #7 ] |
|
|
|
Super Member |
Joined: 4-Apr-2003 Posts: 1225
From: U.K. | | |
|
| Nice one Chris
Cheers, Bean. _________________ OS4.1 + SAM Flex RIP my A1XE.. that used to have an appetite for batteries!
|
|
Status: Offline |
|
|
mattk
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 20:43:51
| | [ #8 ] |
|
|
|
Regular Member |
Joined: 7-Mar-2003 Posts: 242
From: England | | |
|
| @Chris_Y
Great idea. Nice one. _________________ Matt
|
|
Status: Offline |
|
|
Giovanni
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 20:55:44
| | [ #9 ] |
|
|
|
Regular Member |
Joined: 19-May-2003 Posts: 322
From: Munich, Germany | | |
|
| |
Status: Offline |
|
|
madtrekker
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 21:15:58
| | [ #10 ] |
|
|
|
Regular Member |
Joined: 11-Mar-2003 Posts: 271
From: Unknown | | |
|
| This is so simple, yet so unbelievably cool! I love it!
The best part is, it could only work so transparently and in such a system friendly way on Amiga OS. Brilliant. |
|
Status: Offline |
|
|
cgutjahr
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 21:36:42
| | [ #11 ] |
|
|
|
Cult Member |
Joined: 8-Mar-2003 Posts: 969
From: Unknown | | |
|
| Wow, nice surprise, thanks.
Have you thought about adding WebDAV support at some point in time? That would be a killer feature (well, to me at least ) |
|
Status: Offline |
|
|
Zardoz
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 21:40:04
| | [ #12 ] |
|
|
|
Team Member |
Joined: 13-Mar-2003 Posts: 4261
From: Unknown | | |
|
| Quote:
The best part is, it could only work so transparently and in such a system friendly way on Amiga OS. Brilliant. |
First of all, it's not a new idea, MountFTP was the first to do that on AmigaOS, iirc. It rules, nevertheless. But no, there are other systems on which this is possible transparently. There are ways to mount ftps in various Unices, iirc. _________________
|
|
Status: Offline |
|
|
madtrekker
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 21:52:23
| | [ #13 ] |
|
|
|
Regular Member |
Joined: 11-Mar-2003 Posts: 271
From: Unknown | | |
|
| @AMiGR
Not quite as transparently I'd imagine.
It's the fact that due to a coincidental similarity in the way URLs are constructed and the way Amiga paths are constructed you can literally enter :
type http://www.google.co.uk/
And get the HTML for Google's homepage back. Correct me if I'm wrong (I'm no *nix expert) but if there was an equivalent device driver in Unix/Linux it'd end up looking like:
cat /http/www.google.co.uk/
Or something very similar. Now there might be ways around that, but my point was that Amiga OS doesn't need to cheat. Thanks to this wonderful tool, you can just put URLs onto the commandline and they just work automagically!
Oh, and Re: MountFTP, I did know about that, but since it comes with a Workbench icon, it'd never actually occurred to me that you could use it from the commandline the same way you can with http-handler, but you're right it is very cool too. Last edited by madtrekker on 19-Feb-2006 at 09:59 PM. Last edited by madtrekker on 19-Feb-2006 at 09:53 PM. Last edited by madtrekker on 19-Feb-2006 at 09:52 PM.
|
|
Status: Offline |
|
|
AmiGame
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 22:00:45
| | [ #14 ] |
|
|
|
Elite Member |
Joined: 23-Mar-2004 Posts: 3599
From: Peterborough, UK, Planet Earth (I think...) | | |
|
| |
Status: Offline |
|
|
Zardoz
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 22:40:52
| | [ #15 ] |
|
|
|
Team Member |
Joined: 13-Mar-2003 Posts: 4261
From: Unknown | | |
|
| The protocol stuff, like http:// are derived directly from UNIX, so it might or might not be, I'm not an expert. _________________
|
|
Status: Offline |
|
|
miksuh
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 23:08:44
| | [ #16 ] |
|
|
|
Cult Member |
Joined: 10-Mar-2003 Posts: 731
From: Espoo, Finland | | |
|
| @AMiGR
Quote:
There are ways to mount ftps in various Unices, iirc. |
Yeah. It's quite easy if you use GNOME desktop. Just open Nautilus filemanager and select connect to server from the menu. If you mount ftp-server then every GNOME application supporting GNOME-VFS can access that ftp. It's great feature but it's not as transparent as this http-handler for the OS4. Console-applications can't access that mounted ftp nor can those GNOME-applications which do not support GNOME-VFS.. There are also some lower level systems which I have not used. |
|
Status: Offline |
|
|
miksuh
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 23:10:25
| | [ #17 ] |
|
|
|
Cult Member |
Joined: 10-Mar-2003 Posts: 731
From: Espoo, Finland | | |
|
| This could be wery useful. Simple but great idea !! Last edited by miksuh on 19-Feb-2006 at 11:11 PM.
|
|
Status: Offline |
|
|
Chris_Y
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 23:15:02
| | [ #18 ] |
|
|
|
Elite Member |
Joined: 21-Jun-2003 Posts: 3205
From: Beds, UK | | |
|
| @cgutjahr
Quote:
Have you thought about adding WebDAV support at some point in time? |
I'd never even heard of it.
After a quick breeze through the (oldest) specs, it certainly looks doable. LOCK is most likely impossible - AmigaOS commands tend to do a Lock() followed by an Examine() on every component of the path. As every component can be treated as a file, I have no way of knowing whether the Examine() is expecting a file or a directory, so this doesn't work. Also Lock() tends to not be used to stop files being modified while they are open, so it is likely to not help anyway.
As far as I can tell, LOCK is optional so this shouldn't be a problem. I need to look at the specs in more detail, though.
Is there a public WebDAV resource where I could test this should I decide to implement it?
Chris _________________ "Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion Avatar is Tabitha by Eric W Schwartz
|
|
Status: Offline |
|
|
BlackNinja
| |
Re: http-handler released for OS4 Posted on 19-Feb-2006 23:39:34
| | [ #19 ] |
|
|
|
Regular Member |
Joined: 2-May-2005 Posts: 123
From: Germany | | |
|
| Very simpel,Very good, Very system friendly = Very good work Last edited by BlackNinja on 19-Feb-2006 at 11:40 PM.
|
|
Status: Offline |
|
|
amipal
| |
Re: http-handler released for OS4 Posted on 20-Feb-2006 1:01:58
| | [ #20 ] |
|
|
|
Super Member |
Joined: 8-Apr-2003 Posts: 1907
From: Saltdean, East Sussex, UK | | |
|
| @madtrekker Quote:
The best part is, it could only work so transparently and in such a system friendly way on Amiga OS. Brilliant. |
My point exactly! It allows any program to access the HTTP as a device... fantastic! _________________ After a decade away from the scene, I am back!
|
|
Status: Offline |
|
|