Jump to content
Sign in to follow this  
Armand

Decompressing HTTP1.1 gzip data ?!

Recommended Posts

Armand

Decompressing HTTP1.1 gzip data ?!

Yeah i know there is the zlib udf but how do you use that ?!

Any idea anyone ?!


[u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?!

Share this post


Link to post
Share on other sites
Richard Robertson

You realize that you don't have to get the data in compressed format right?

Share this post


Link to post
Share on other sites
Richard Robertson

Then you'll need a GZIP library. :D

Share this post


Link to post
Share on other sites
Armand

@Richard Robertson

Thank you so much my man... what would i have done without you... :D

Anyone else got any useful advices maybe ?! Please!


[u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?!

Share this post


Link to post
Share on other sites
Xand3r

maybe you could show what code you have so far?

for example how do you get the gzipped data in the first place?


Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro

Share this post


Link to post
Share on other sites
Richard Robertson

When you get the data incoming, you just send it right through the GZIP decompressor. There's nothing really to show.

Share this post


Link to post
Share on other sites
Armand

@Xand3r

Using Http1.1 request with gzip encoding header...

@Richard Robertson

Yeah, well... the gzipped data received by http1.1 request doesn't work as a .gz file ... i tried that ... Thanks though.

Any other ideas ?!


[u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?!

Share this post


Link to post
Share on other sites
ProgAndy

There is a zlib UDF :Dzlib

I think you should use the _Zlib_UncompressBinary function. I'm just unsure how to get the uncompressed size of the data.

And here some c++-Code for this task: http://www.haxx.lv/?q=winhttpgzip


*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×