WinHTTPRequest error 0x80072efd

Get help with using AutoHotkey and its commands and hotkeys
malcev
Posts: 709
Joined: 12 Aug 2014, 12:37

WinHTTPRequest error 0x80072efd

17 Jan 2016, 16:17

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
malcev
Posts: 709
Joined: 12 Aug 2014, 12:37

Re: WinHTTPRequest error 0x80072efd

18 Jan 2016, 06:40

Interesting thing that this code with WinHTTPRequest works on Win10.
But It does not work on Win7.
Hoyer

Re: WinHTTPRequest error 0x80072efd

06 Jun 2016, 04:10

WinHTTP uses different proxy settings, try:

netsh winhttp show proxy
malcev
Posts: 709
Joined: 12 Aug 2014, 12:37

Re: WinHTTPRequest error 0x80072efd

06 Jun 2016, 05:33

I have: "Direct access (no proxy server)" on both systems.

Return to “Ask For Help”

Who is online

Users browsing this forum: boiler, Google [Bot], jvalk87, swagfag and 48 guests