WinHTTPRequest error 0x80072efd

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
malcev
Posts: 1769
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: 1769
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: 1769
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 (v1)”

Who is online

Users browsing this forum: Descolada, jaka1, mikeyww, RussF and 318 guests