Advertisement
anonymous1184

tls.ahk

Sep 28th, 2022
1,439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
  2. whr.Option(4) := 0x3300, results := []
  3. whr.Open("HEAD", "https://github.com")
  4. for _,ver in [0x200, 0x800, 0x2000] {
  5.     done := false, whr.Option(9) := ver
  6.     try whr.Send(), done := true
  7.     results.push(done)
  8. }
  9. MsgBox % Format("{:1}{:2}{:3}", results*)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement