The task at hand is to login to a website and download a report using MATLAB. I cannot find anything helpful on the subject. I have written code to do this in VB before using WinHTTPRequest but even that hasn't helped in MATLAB.
Any pointers, examples or guidance would be much appreciated.
I have the code in VBA already and its very complicated so the best way to go about this was to translate VBA to MATLAB. I used x = actxserver( 'WinHttp.WinHttpRequest.5.1' ) to make the HTTP requests. All has worked apart from x.Option(WinHttpRequestOption_EnableRedirects) = enableRedirect, where enableRedirect is true. I have tried the following with no luck:
WinHttpRequestOption_EnableRedirects = 6;
set( x, 'Option', WinHttpRequestOption_EnableRedirects, enableRedirect );
x.set('Option',WinHttpRequestOption_EnableRedirects,enableRedirect);
x.set('Option',6,enableRedirect);
Has anyone ever managed to set this option in Matlab?