Jump to content

help for Zlib.dll call


Recommended Posts

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
Link to comment
Share on other sites

  • 3 years later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...