AutoHotkey v2 example (edited to add try/catch):
#Requires AutoHotkey 2.0
LaHttpCall("http://localhost:4455/Parameters", "a=aa&b=x+y", "password278351")
MsgBox(LaHttpCall("http://localhost:4455/Add", "x=100&y=2"))
LaHttpCall(url, params:="", password:="") {
http := ComObject("WinHttp.Winhttprequest.5.1")
http.Open("POST", url)
if (password != "")
http.SetCredentials("-", password, 0)
http.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
try {
http.Send(params)
} catch {
MsgBox("No server!")
ExitApp()
}
return http.ResponseText
}