Page 1 of 1

WinHTTPRequest error 0x80072efd

Posted: 17 Jan 2016, 16:17
by malcev
Why Msxml2.XMLHTTP works OK, but with WinHTTPRequest I get error 0x80072efd A connection with server could not be established?

Code: Select all

link := "https://suprnova.cc/index.php"

req := ComObjCreate("Msxml2.XMLHTTP")
req.open("GET", link, False)
req.Send()
MsgBox, % req.responseText

req := ComObjCreate("WinHTTP.WinHTTPRequest.5.1")
req.Open("GET", link, false)
req.Send()
MsgBox, % req.responseText

Re: WinHTTPRequest error 0x80072efd

Posted: 18 Jan 2016, 06:40
by malcev
Interesting thing that this code with WinHTTPRequest works on Win10.
But It does not work on Win7.

Re: WinHTTPRequest error 0x80072efd

Posted: 06 Jun 2016, 04:10
by Hoyer
WinHTTP uses different proxy settings, try:

netsh winhttp show proxy

Re: WinHTTPRequest error 0x80072efd

Posted: 06 Jun 2016, 05:33
by malcev
I have: "Direct access (no proxy server)" on both systems.