decompress gzip http content - built-in?

Hi.

Xojo recently has added some gzip libraries to the WE (if I’ve followed this correctly, I don’t use the WE).

Are the gzip functions available for use in desktop applications?

I find I need to be able to read gzip content from securehttpsocket connections and I was wondering if Xojo currently permits this natively.

If not, I do have einhugur e-crypt it, so I guess I could use it, but I haven’t seen how to uncompress a received “string” in PageReceived. Has anyone got a wrapper function for zstreamreader that takes a compressed stream and spits out the results?

Over a year and no answer…eh :-/ That’s kind of worrisome. Great question…was about to ask the same. Ever find a solution?

There was gzip built in prior to that but it was never made public because Xojo thought the API may change. I filed a bug report in 2012.

feedback://showreport?report_id=20404

Thanks Jeremy!

Oh, here is another I should have mentioned: feedback://showreport?report_id=21646

No reply, no. I thought the underlying function should be available but it didn’t seem to be.

I know you’re not supposed to but I’ve been using _GZipString the last year just fine.

Thomas Tempelmann also has a Zip class which I was directed to when asking about gzip, though I don’t see gzip mentioned on that page and not sure they’re interconvertible.

[quote=192461:@Will Shank]I know you’re not supposed to but I’ve been using _GZipString the last year just fine.

Thomas Tempelmann also has a Zip class which I was directed to when asking about gzip, though I don’t see gzip mentioned on that page and not sure they’re interconvertible.[/quote]

It has been stable since I created the bug report, that was in 2012. Just hasn’t been marked stable by Xojo :-/

I see on that report that the HTTPSocket does not seem to support chunked mode, and I see on the release notes for RS2012r2:

"FIX 22839 Framework: HTTPSocket: Removed handling for HTTP 1.1 chunked responses. "

Is this still the case? Dechunking is really not that hard IIRC.

I think it has more to do with the old HTTPSocket and is only really support 1.0

Thanks for the response, but is chunked mode supported in the current Xojo version?

Don’t think so in the classic framework HTTPSocket.
The new framework HTTPSocket supports 1.1 so it may but I don’t honestly know for sure.

Thanks Norman.