Click Here
home features news forums classifieds faqs links search
5755 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
Home
Features
News
Forums
Classifieds
Links
Downloads
Extras
OS4 Zone
IRC Network
AmigaWorld Radio
Newsfeed
Top Members
Amiga Dealers
Information
About Us
FAQs
Advertise
Polls
Terms of Service
Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
8 crawler(s) on-line.
 22 guest(s) on-line.
 2 member(s) on-line.


 LarsB,  MEGA_RJ_MICAL

You are an anonymous user.
Register Now!
 MEGA_RJ_MICAL:  38 secs ago
 LarsB:  45 secs ago
 BigD:  11 mins ago
 Georg:  14 mins ago
 Templario:  16 mins ago
 evilFrog:  25 mins ago
 Dege:  27 mins ago
 BSzili:  52 mins ago
 arthoropod:  1 hr 48 mins ago
 Marcian:  1 hr 54 mins ago

Software News   Software News : http-handler released for OS4
   posted by Chris_Y on 19-Feb-2006 18:29:01 (4056 reads)
http-handler is a virtual HTTP: device for OS4 to enable easy access of web-hosted files from Amiga applications.

For example, you can copy archives from Aminet using the "copy" command, unarchive archives with Unarc without downloading them first, and view PDFs directly from the web very slowly, just like the Adobe plugin for Windows browsers


Features:
* Allows access to web-hosted files via a virtual HTTP: device.
* Supports Open(), Read(), Close() and Seek().
* Implements HTTP redirects (301,302) as soft-links - even works with redirects that point to local files.
* Optionally supports gzip and deflate content-encoding for faster download times, if z.library is installed.
* Will work through a (non-authenticating) proxy server.
* Can connect to HTTP services running on ports other than the default.

Download
    

Related Links
· More about Software News
· News by Chris_Y


Most read story about Software News
UBoot 2010.06.04 for Sam460ex available

Last news about Software News
Goadf! 3.0 has been released
Printer Friendly Page  Send this Story to a Friend

Goto page ( 1 | 2 )

PosterThread
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
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  
Chris_Y 
Re: http-handler released for OS4
Posted on 19-Feb-2006 20:08:41
#4 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3140
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
Profile     Report this post  
Hans 
Re: http-handler released for OS4
Posted on 19-Feb-2006 20:16:43
#5 ]
Elite Member
Joined: 27-Dec-2003
Posts: 4927
From: New Zealand

This should come in handy. With this you could easily write scripts (DOS or Arexx) that download files from websites.

Hans


_________________
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project.
https://keasigmadelta.com/ - More of my work.

 Status: Offline
Profile     Report this post  
amipal 
Re: http-handler released for OS4
Posted on 19-Feb-2006 20:18:28
#6 ]
Super Member
Joined: 8-Apr-2003
Posts: 1899
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
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  
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

That's really cool Chris! Thank you!


_________________
www.amiga4ever.de

 Status: Offline
Profile     Report this post  
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
Profile     Report this post  
cgutjahr 
Re: http-handler released for OS4
Posted on 19-Feb-2006 21:36:42
#11 ]
Cult Member
Joined: 8-Mar-2003
Posts: 891
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
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  
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...)

@Chris_Y

You've been busy again, haven't you !

Carry on...

Jerry


_________________
- AOS has been ported to ex-86 ! It's called AROS and WinUAE... Or E-UAE on Linux !

- A1XE-G4 up and runing with:
512MB Ram / 200GB and 80GB HardDisks on Sii0680.
AOS4 Final Update / AmiZilla 0.1 Alpha

 Status: Offline
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  
Chris_Y 
Re: http-handler released for OS4
Posted on 19-Feb-2006 23:15:02
#18 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3140
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
Profile     Report this post  
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
Profile     Report this post  
amipal 
Re: http-handler released for OS4
Posted on 20-Feb-2006 1:01:58
#20 ]
Super Member
Joined: 8-Apr-2003
Posts: 1899
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
Profile     Report this post  

Goto page ( 1 | 2 )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle