Masaki Suketa
7/7/2005 1:13:00 PM
Hello.
In message "win32ole help"
on 05/07/07, Ernest Ellingson <erne@powernav.com.remove.this> writes:
> The last line is what I'm trying to accomplish with Ruby.
> Here's the Ruby code
>
> require 'win32ole'
> WinHttpRequestOption_EnableRedirects = 6
> web = WIN32OLE.new("WinHttp.WinHttpRequest.5.1")
> web.Option(WinHttpRequestOption_EnableRedirects)= false This line
> results in a sytax error.
Try the setproperty method.
require 'win32ole'
WinHttpRequestOption_EnableRedirects = 6
web = WIN32OLE.new("WinHttp.WinHttpRequest.5.1")
web.setproperty('Option', WinHttpRequestOption_EnableRedirects, false)
Regards,
Masaki Suketa