Http.Send() error on Windows 7 Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
doubledave22
Posts: 343
Joined: 08 Jun 2019, 17:36

Http.Send() error on Windows 7

03 Aug 2021, 10:20

Here's the exception I am getting when doing a simple http request from ahk on Windows 7 to my heroku server. Worked fine up until today and still works on Windows 10.
---------------------------
script.ahk
---------------------------
Error: 0x80072EFE -
Source: WinHttp.WinHttpRequest
Description: The connection with the server was terminated abnormally

HelpFile: (null)
HelpContext: 0

Specifically: Send

---> 14306: HTTP.Send()
So after some more testing this script works:

Code: Select all

HTTP := ComObjCreate("WinHttp.WinHttpRequest.5.1")
HTTP.Open("GET", "https://us-central1-workflowsample.cloudfunctions.net/datetime")
HTTP.Send()
msgbox, % HTTP.ResponseText
but when I replace this test endpoint with the endpoint to my own server it fails.

Other noteworthy things:
1) Using postman or putting the endpoint directly into a firefox url from my Win7 machine calls the api just fine.
2) If i remove the "s" in https when calling my server it works fine as well.

I don't know where to start when debugging this since the ahk error is pitched immediately and that's all the information I get. I know support for Win7 is pretty much done so I probably shouldn't support it anymore however I still have a handful of users on it. If anyone has any clues for how I can fix this either on AHK end or the server end please let me know!
doubledave22
Posts: 343
Joined: 08 Jun 2019, 17:36

Re: Http.Send() error on Windows 7

03 Aug 2021, 11:07

Thanks @malcev! It turned out the DefaultSecureProtocols registry subkey was the problem.
To apply this update, the DefaultSecureProtocols registry subkey must be added.
Note To do this, you can add the registry subkey manually or install the "Easy fix" to populate the registry subkey.
Once running the installer in your link for the easy fix it is now working. Much appreciated!!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: tabr3 and 146 guests