Reggae::http.stream
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    The Reggae class http.stream is not a new one, but it is "backported" now to use the current Reggae API. The purpose of the class is to fetch a resource (file) via HTTP protocol. It can be some media file to be decoded later by Reggae, but it need not to. You can perfectly use http.stream just to fetch some file in your application, without diving into bsdsocket API mud and HTTP internals. Just three lines and your data are in memory. Because of Reggae modularity, there is no big overhead, you shouldn't think "Well, it is no good to use the whole Reggae just for one class". http.stream provides you HTTP/1.1 compatibility, HTTP proxy support, chunked transfer support. You have access to HTTP response header if needed. The class is available via MorphUp or from Reggae homepage (note that LhA archive does not contain updated header files, so it is targetted at users, not developers, MorphUp is the preferred way).
  • »31.03.06 - 08:11
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    jcmarcos
    Posts: 1178 from 2003/3/13
    From: Pinto, Madrid ...
    Quote:

    Krashan wrote (snipped):

    The purpose of the class is to fetch a resource (file) via HTTP protocol. Just three lines and your data are in memory. Because of Reggae modularity, there is no big overhead. http.stream provides you HTTP/1.1 compatibility, HTTP proxy support, chunked transfer support.


    Wow! Let's plug in Marcik's KHTML thingie onto Reggae...
  • »31.03.06 - 08:21
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Robin
    Posts: 741 from 2003/2/24
    Since I'm no programmer but "only" a scripter:
    Is there an easy way to use Reggae and it's classes
    from within Arexx ?
  • »31.03.06 - 08:46
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Crumb
    Posts: 730 from 2003/2/24
    From: aGaS & CUAZ Al...
    I guess this is something similar to an HTTP-handler isn't it? it sounds pretty interesting :-)

    [ Edited by Crumb on 2006/3/31 9:16 ]
  • »31.03.06 - 08:53
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    marcik
    Posts: 268 from 2003/4/12
    From: Kielce/Krakow,...
    Quote:

    Wow! Let's plug in Marcik's KHTML thingie onto Reggae...


    I was bugging Krashan since a long time to finish porting http.stream to Reagge so I can use it :-)
  • »31.03.06 - 09:03
    Profile
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    I guess this is something similar to an HTTP-handler isn't it?

    Yes something similar. HTTP-Handler has an advantage, that old applications, knowing nothing about networking, can access files via HTTP without any changes, while http.stream has to be used explicitly. On the other hand http.stream gives an application more control over fetching (editable fields in request header, access to parsed response header, proxy control, possibility to break at any time etc.).

    [ Edited by Krashan on 2006/3/31 8:59 ]
  • »31.03.06 - 09:54
    Profile Visit Website
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    Is there an easy way to use Reggae and it's classes from within Arexx ?

    Currently no. But well, adding ARexx interface to Reggae is very interesting idea and opens a lot of possibilities. I will definitely add ARexx port to multimedia.class, to allow Reggae to be used from ARexx. I only need to think well about the ARexx API, which level of Reggae API should be exposed to ARexx.
  • »31.03.06 - 09:58
    Profile Visit Website
  • Butterfly
    Butterfly
    Posts: 65 from 2003/2/10
    From: France (Agen 47)
    It's nice to see such progress for reggea, it's a must have for MOS to have a modern OS. please developpers, support it :-)
    N'cha, LorD
    http://www.lordfpx.com/
  • »31.03.06 - 11:05
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    winterhunter
    Posts: 204 from 2005/10/13
    From: PACA, France
    Great work, Krashan!

    Thanks a lot!
  • »31.03.06 - 16:17
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Acill
    Posts: 1914 from 2003/10/19
    From: Port Hueneme, Ca.
    Krash I download your index from here and try to install your apps like reggae and the sound datatypes, but in the install root its listed as work:tools for the location and when I select the package from the list in the local hosted area from your pmi file every one failes with the message 'download of package sounddatatypes failed or aborted'

    What am I doing wrong?
    Powermac Dual 2.0 GHZ G5 PCI-X (Registration #1894)
    Powerbook 1.67GHZ
    Powermac Dual 2.0 GHZ G5 PCIE (Registration #6130)
    A4000T CSPPC, Mediator
    Need Repairs, upgrades or a recap in the USA? Visit my website at http://www.acill.com
  • »01.04.06 - 16:47
    Profile Visit Website
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    every one failes with the message 'download of package sounddatatypes failed or aborted'

    MuCl log output will be useful to investigate the problem.
  • »01.04.06 - 17:29
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Acill
    Posts: 1914 from 2003/10/19
    From: Port Hueneme, Ca.
    Where do I find the log files at? I removed you index for now.
    Powermac Dual 2.0 GHZ G5 PCI-X (Registration #1894)
    Powerbook 1.67GHZ
    Powermac Dual 2.0 GHZ G5 PCIE (Registration #6130)
    A4000T CSPPC, Mediator
    Need Repairs, upgrades or a recap in the USA? Visit my website at http://www.acill.com
  • »01.04.06 - 22:45
    Profile Visit Website
  • szt
  • Cocoon
    Cocoon
    szt
    Posts: 53 from 2004/10/9
    From: Hungary
    I have installed the new http.stream but it seems that marcik's weather stopped working with it. When I set back the old http.stream the weather was working well. Has anybody of you experienced the same?
    MorphOS 3.9
    PowerMac 7,3, 1,8GHz,
    Radeon 9600
    300 GB SeagateHDD, 120 GB Samsung SSD
    LGM2382D, Canon MG7550
  • »02.04.06 - 10:00
    Profile
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    Has anybody of you experienced the same?

    It is normal. The new class is unfortunately incompatible with the old one. I will ask marcik to recompile Weather with the new class. The same is with my SeventhSense - it will not work with the new class. I will recompile it (and maybe add some new functionality) this week.
  • »02.04.06 - 10:31
    Profile Visit Website
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    Where do I find the log files at?

    MuCl main window has two tabs, the second one is log.
  • »02.04.06 - 10:32
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Acill
    Posts: 1914 from 2003/10/19
    From: Port Hueneme, Ca.
    Standard 03.04.06 19:42:10 Added new local index 'teleinfo.pb.edu.pl' teleinfo.pb.edu.pl
    Error 03.04.06 19:42:18 Can't open file 'PMI files/534c4a94/SoundDatatypes/hokwdlmyxnujibxctwwo.pmf' for input teleinfo.pb.edu.pl
    Error 03.04.06 19:42:18 Can't install single package file 'mp3.datatype' to 'System:MorphOS/Classes/Datatypes/mp3.datatype' teleinfo.pb.edu.pl


    Thats what the log shows me every time I add your pmi file and try to
    update using it. I have also added several other PMI files from others
    and have no issues at all with getting updates to there sofware. Below
    is a paste from installing PowerSDL using it.

    Debug 03.04.06 19:47:12 Download of link archive 'http://www.aminet.net/util/libs/powersdl.lha' skipped. (Same file) www.lehtoranta.net
    Standard 03.04.06 19:47:12 Link package file 'powersdl.info' installed to 'ram:powersdl.info' www.lehtoranta.net
    Standard 03.04.06 19:47:12 Link package file 'PowerSDL.catalog' installed to 'SYS:Locale/Catalogs/deutsch/PowerSDL.catalog' www.lehtoranta.net
    Standard 03.04.06 19:47:12 Link package file 'Français.ct' installed to 'SYS:Locale/Catalogs/français/Français.ct' www.lehtoranta.net
    Standard 03.04.06 19:47:12 Link package file 'PowerSDL.catalog' installed to 'SYS:Locale/Catalogs/français/PowerSDL.catalog' www.lehtoranta.net
    Standard 03.04.06 19:47:12 Link package file 'powersdl.cd' installed to 'ram:powersdl/Catalogs/powersdl.cd' www.lehtoranta.net
    Standard 03.04.06 19:47:12 Link package file 'powersdl.catalog' installed to 'SYS:Locale/Catalogs/russian/powersdl.catalog' www.lehtoranta.net
    Standard 03.04.06 19:47:12 Link package file 'COPYING' installed to 'ram:powersdl/COPYING' www.lehtoranta.net
    Standard 03.04.06 19:47:12 Link package file 'CREDITS' installed to 'ram:powersdl/CREDITS' www.lehtoranta.net
    Standard 03.04.06 19:47:12 Link package file 'History' installed to 'ram:powersdl/History' www.lehtoranta.net
    Standard 03.04.06 19:47:12 Link package file 'powersdl.readme' installed to 'ram:powersdl/powersdl.readme' www.lehtoranta.net
    Standard 03.04.06 19:47:12 Link package file 'README' installed to 'ram:powersdl/README' www.lehtoranta.net
    Standard 03.04.06 19:47:12 Link package file 'README-SDL.txt' installed to 'ram:powersdl/README-SDL.txt'

    [ Edited by Acill on 2006/4/3 19:48 ]
    Powermac Dual 2.0 GHZ G5 PCI-X (Registration #1894)
    Powerbook 1.67GHZ
    Powermac Dual 2.0 GHZ G5 PCIE (Registration #6130)
    A4000T CSPPC, Mediator
    Need Repairs, upgrades or a recap in the USA? Visit my website at http://www.acill.com
  • »04.04.06 - 04:44
    Profile Visit Website
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    Works here. Have no idea why it can fail. Files are online and available 24/7.
  • »04.04.06 - 10:12
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Wishmaster
    Posts: 342 from 2003/6/29
    It works without problems here, too.
    Pegasos PPC
  • »04.04.06 - 10:26
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Acill
    Posts: 1914 from 2003/10/19
    From: Port Hueneme, Ca.
    Quote:


    Krashan wrote:
    Works here. Have no idea why it can fail. Files are online and available 24/7.


    great answer, that helps me a lot. So what the heck is the problem then anyone?
    Powermac Dual 2.0 GHZ G5 PCI-X (Registration #1894)
    Powerbook 1.67GHZ
    Powermac Dual 2.0 GHZ G5 PCIE (Registration #6130)
    A4000T CSPPC, Mediator
    Need Repairs, upgrades or a recap in the USA? Visit my website at http://www.acill.com
  • »04.04.06 - 12:28
    Profile Visit Website
  • scf
  • Cocoon
    Cocoon
    scf
    Posts: 54 from 2003/6/3
    From: Ukraine
    Krashan: Arexx media player would rule ;-)
  • »04.04.06 - 13:12
    Profile
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    @Acill: Delete contents of MorphUp Cache directory and try again.
  • »04.04.06 - 13:57
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Acill
    Posts: 1914 from 2003/10/19
    From: Port Hueneme, Ca.
    I still have the same issue after deleting. I find in odd that only yours is giving me the problem and none of the others are.
    Powermac Dual 2.0 GHZ G5 PCI-X (Registration #1894)
    Powerbook 1.67GHZ
    Powermac Dual 2.0 GHZ G5 PCIE (Registration #6130)
    A4000T CSPPC, Mediator
    Need Repairs, upgrades or a recap in the USA? Visit my website at http://www.acill.com
  • »04.04.06 - 19:59
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Acill
    Posts: 1914 from 2003/10/19
    From: Port Hueneme, Ca.
    I still have the same issue after deleting. I find in odd that only yours is giving me the problem and none of the others are.
    Powermac Dual 2.0 GHZ G5 PCI-X (Registration #1894)
    Powerbook 1.67GHZ
    Powermac Dual 2.0 GHZ G5 PCIE (Registration #6130)
    A4000T CSPPC, Mediator
    Need Repairs, upgrades or a recap in the USA? Visit my website at http://www.acill.com
  • »04.04.06 - 20:09
    Profile Visit Website
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    Standard 03.04.06 19:42:10 Added new local index 'teleinfo.pb.edu.pl' teleinfo.pb.edu.pl

    Why is this index added as local? It is a hosted index definitely.
  • »05.04.06 - 05:07
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Acill
    Posts: 1914 from 2003/10/19
    From: Port Hueneme, Ca.
    Quote:


    Krashan wrote:
    Standard 03.04.06 19:42:10 Added new local index 'teleinfo.pb.edu.pl' teleinfo.pb.edu.pl

    Why is this index added as local? It is a hosted index definitely.


    okay , but from what I have seen to add an index from a file and have the file selector area get un-ghosted you have to change the drop down menu to local from disk from its default of from url to even select a pmi file. Thats the way i have done all the others and they all work as well. So I guess my system just doesnt like your index, but i still think its a bug in something since I have no trouble with any other pmi files.
    Powermac Dual 2.0 GHZ G5 PCI-X (Registration #1894)
    Powerbook 1.67GHZ
    Powermac Dual 2.0 GHZ G5 PCIE (Registration #6130)
    A4000T CSPPC, Mediator
    Need Repairs, upgrades or a recap in the USA? Visit my website at http://www.acill.com
  • »05.04.06 - 14:56
    Profile Visit Website