Help With Setting WinHttpRequest Options

Hi, I haven’t been able to figure out how to set the options for the WinHttp.WinHttpRequest.5.1 type. My code takes a url and returns its status. Howerever, I need it to correctly report redirects and it doesn’t. I read somewhere that it might work the way I want it to if I disable the redirects option. Problem is that I can seem to figure out how to set it correctly.

How do I correctly set $xHTTP.Option($WinHttpRequestOption_EnableRedirects) = $false?

Please and thanks!

The problem seems unfixable; you might want to exploreÂ and use the alternative method.