Hi all, my web page parsing program stopped working today because they started gzipping their content. I use the PageReceived event and my fix for now is to write it out to a file, gunzip and read back in; but I'd rather not have to go out through a file. Is that possible? The man pages say it'll process standard input to standard output but I don't know how to use those, and maybe I'm misreading :) (for mac if that makes a difference)
This is the current file round-tripping. If I have to use this is it sound?
Sub PageReceived(..., content as string) //content is gzipped dim f As FolderItem = SpecialFolder.Temporary.Child("agcontent.gz") dim bs As BinaryStream = BinaryStream.Create(f, true) bs.Write(content) bs.close bs = nil dim sh As new Shell sh.Execute("gunzip " + f.ShellPath) sh = nil f = SpecialFolder.Temporary.Child("agcontent") bs = BinaryStream.Open(f) content = bs.Read(bs.Length, Encodings.UTF8) bs.close bs = nil f.Delete f = nil //content now html, parse as before //... End Sub