Board index » delphi » Indy10 and Accept-Encode
itay.weinberger
![]() Delphi Developer |
Indy10 and Accept-Encode2005-11-13 02:17:10 AM delphi6 Hi Indy gurus, I'm using Indy10 in order to fetch html pages, when I try downloading the page with "accpet-encoding: gzip", I cannot find a way to deflate/inflate/decompress/uncompress (any way you want to call it) the response stream into a valid string. Here's a snippest of my code: GETStatement:= 'www.google.com/'; IdHTTPRequest:= TIdHTTP.Create(); IdHTTPRequest.Request.AcceptEncoding := 'gzip, deflate, '; //Indy automatically adds identity fResultStream := TStringStream.Create(''); IdHTTPRequest.Get(GETStatement, fResultStream); ... (What should I do now?) HTMLSource := Response.DataString; I read in other threads that Indy10 support decompression, I didn't see any documentation for that. I really hope you could help me. Thanks, Itay |