John Posted November 7, 2006 Share Posted November 7, 2006 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. Link to comment Share on other sites More sharing options...
flyingboz Posted November 7, 2006 Share Posted November 7, 2006 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. Link to comment Share on other sites More sharing options...
John Posted November 7, 2006 Author Share Posted November 7, 2006 (edited) Ok I found the problem. I don't have WinHttp.dll. edit: Windows 2000/XP/2003 only. Edited November 7, 2006 by John Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now