Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

HTTP n Gzip content

 [1/5] from: jonwhispa:googlemail at: 3-Mar-2008 8:46


Rebol V2 Has anybody found an easy way of decompressing gzip content from the web as in page: gzip-decompress read/binary/custom http://www.rebol.com [ header [ Accept-Encoding: "gzip,deflate" ]] I can work around it using call and curl, but with reads every second having a dos window popup isnt desirable. Rebol V3 Will this be a feature? J

 [2/5] from: petr:krenzelok:seznam:cz at: 3-Mar-2008 9:51


CarleySimon napsal(a):
> Rebol V2 > > Has anybody found an easy way of decompressing gzip content from the web as in > > page: gzip-decompress read/binary/custom http://www.rebol.com [ header [ Accept-Encoding: "gzip,deflate" ]] > > I can work around it using call and curl, but with reads every second having a dos window popup isnt desirable. >
I just sent note to ml about upcoming 2.7.6 release, and I wish one and only one bug being fixed for me at least - fix the black console window popping-up with each call. I will bug the group to the death to get that defficiency fixed, don't worry :-) btw - why call and curl? aren't there any gzip command line tools out there?
> Rebol V3 > > Will this be a feature? >
dunno, there might be some zip related functionality. It is internally in rebol anyway. We talked about it several times, and if not directly in Core, it will surely be a plug-in ... very usefull feature to miss on imo ... Petr

 [3/5] from: moliad::gmail::com at: 3-Mar-2008 4:31


you can use the following rebol.org script wchich harnesses load's unzipping capabilities. :-) it even allows zip encoding, all done within rebol parse. http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=rebzip.r there are very nice things on rebol.org, which go unnoticed. -MAx On Mon, Mar 3, 2008 at 3:51 AM, Petr Krenzelok <petr.krenzelok-seznam.cz> wrote:

 [4/5] from: anton:wilddsl:au at: 4-Mar-2008 2:46


The script mentioned below seems only to support ZIP. So it will not work as is. ZIP is not to be confused with GZIP. Both ZIP and GZIP use DEFLATE, so the script below may be adapted to support GZIP. http://en.wikipedia.org/wiki/Gzip Regards, Anton.

 [5/5] from: jonwhispa:googlemail at: 4-Mar-2008 9:04


Thanks for the pointers.. Found this one by the same author which show the gzip wrapping http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=gunzip.r Seems around about way, re-wrapping the gzip/zip as a png then using load to decompress. But it works. Testing it, managed to get 150k sent as 20k of data. J