I am new to AHK, in general, so this might not be a bug at all, but the behavior seems a bit unexpected to me.
WinHttp.WinHttpRequest.5.1 provides various options that can be set. Here is the reference:
https://docs.microsoft.com/en-us/windows/desktop/winhttp/winhttprequestoption
In AHK V1, it is possible to set WinHttp.WinHttpRequest.5.1 options using variable assignment.
For example we can disable automatic redirects like this:
Code: Select all
HttpObj.Option(6) := False
Code: Select all
Error: Invalid assignment.
Specifically: := False
Code: Select all
HttpObj.Option(6) := False
HttpObj.Option(6) := "False"
HttpObj.Option(6) := 0
HttpObj.Option(6, False)
HttpObj.Option(6, "False")
HttpObj.Option(6, 0)
Does anyone know how to set these options in AHK V2? If yes, please let me know.
Thank you for your valuable time.