Sign in to follow this  
Followers 0
John

winhttp.winhttprequest.5.1

3 posts in this topic

Is ObjCreate("winhttp.winhttprequest.5.1") limited to Win XP?

MSDN never mentioned plateforms that I could find.

The code;

$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("GET","http://127.0.0.1/Post.php")

Always errs with;

$oHTTP.Open("GET","http://127.0.0.1/post.php")

Must be of type object ^

Even HTTP.au3 throws this error when included even if not called so I tried;

$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
If IsObj($oHTTP) Then
    MsgBox(0,"","True")
Else
    MsgBox(0,"","False")
EndIf

Which is always false.

Info;

Win 98 SE

AutoIt Ver. 3.1.1.132

IE Ver. 6.0.2800.1106

LocalHost (Apache) works fine from IE, Maxthon, Firefox.

Share this post


Link to post
Share on other sites



look through the registry for the proper version installed on the machine.


Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Ok I found the problem. I don't have WinHttp.dll.

edit: Windows 2000/XP/2003 only.

Edited by John

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  
Followers 0