Juvigy Posted October 11, 2018 Share Posted October 11, 2018 Hi Guys, Here is a simple code: $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHttp.SetProxy(0) ; PRECONFIG = 0 (default), DIRECT = 1, PROXY = 2 $oHTTP.Open("GET",$link,True) $oHTTP.Send() $oHTTP.SetTimeouts(30000, 30000, 30000, 30000) $oHTTP.WaitForResponse() $HTMLSource = $oHTTP.Responsetext The problem is that it doesn't work all the times - i see that i get the proxy error most of the times (i am behind proxy) and "use automatic configuration script" is set. Something like http://autocache.domain.net/. How can i make it work every time? Link to comment Share on other sites More sharing options...
Juvigy Posted October 15, 2018 Author Share Posted October 15, 2018 Anyone? If i use the IE functions for the same thing it works every time, but it is quite slower. 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