Jump to content
Sign in to follow this  
mary

help for Zlib.dll call

Recommended Posts

mary

Hi !

as you know, WinHttp.WinHttpRequest.5.1 did not handle decompression when you ask for a compressed webpage.

so my idea is to use external library (Zlib.dll http://www.zlib.net/manual.html#uncompress) but dont know how to do this with dllcall.

thinks for any help

here my code:

$url="http://www.autoitscript.com"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("GET", $url,False) 
$oHTTP.setRequestHeader("Accept-Encoding" ,"gzip,deflate") ; here i Ask for a compressed webpage

$oHTTP.send()

$htm=$oHTTP.responseText ; $htm is compresed

;;; need help here to decompress $html ??? (with zlib.dll or any other library (urlmon.dll ?...etc)
Edited by mary

Share this post


Link to post
Share on other sites
wakillon

@fishlester

Better late than never ! Posted Image

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

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  

×