Genesi Home Home Projects Forums
Login
Username:

Password:

Remember Me
 
[Register an Account]

Developer Programs
i.MX515
Power2People MPC8610

Efika 5200B

Search Projects

Google

Sponsored By



Efika 5200B Project
Reggae on Efika

in category Multimedia
proposed by Grzegorz Kraszewski on 21st February 2006 (accepted on 20th March 2006)

Blog Entry

  http.stream 51.7
posted by Grzegorz Kraszewski on 6th May 2008

After almost total rewriting of the class I've finished in finally. The most troublesome thing has been automatic redirection on 3xx server response. It requires that current connection is closed and a fresh one is made with newly generated request. While testing it, it also turned out that some HTTP servers do not comply with RFC 2616 and send relative pathes in "Location" header field, while the protocol specification clearly states it must be absolute. A workaround for this issue has been added.

Anyway it is finished (except some cosmetics) and in my opinion it is a very nice component not only usable as a media stream source for Reggae. An application can use it standalone to fetch any resource available via HTTP GET request. The programmer does not need to have HTTP or socket API knowledge. As http.stream gives easy access to (parsed) HTTP request and response headers, an application can use some advanced features like cookie handling, range requests, conditional requests and more. Automatic redirection makes it easier too (as it is standard feature of any WWW browser, we usually don't even know that it happens, but handling it in own application is a headache, believe me). The new class is on the MorphOS CVS server and probably will not be released separately before the day 11111 (the mysterious date of MorphOS 2.0 release).

Christian Rosentreter reviewed MediaLogger 1.8 and sent me a bunch of style guide and GUI consistency notes. Most of them have been implemented, and MediaLogger 1.9 is on the way to be released publicly at the usual place.

PowerDeveloper.org: Copyright © 2004-2010, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. All other names and trademarks used are property of their respective owners. Privacy Policy