HTTP on www.dynare.org now permanently redirects to HTTPS

Using the old HTTP URL makes test fail.
parent c51cfe6d
...@@ -99,7 +99,7 @@ It is possible to instantiate a `dseries` object from a `.csv`, ...@@ -99,7 +99,7 @@ It is possible to instantiate a `dseries` object from a `.csv`,
for a complete description of the constraints on the content of these for a complete description of the constraints on the content of these
files. files.
>> websave('US_CMR_data_t.csv', 'http://www.dynare.org/Datasets/US_CMR_data_t.csv'); >> websave('US_CMR_data_t.csv', 'https://www.dynare.org/Datasets/US_CMR_data_t.csv');
>> d = dseries('US_CMR_data_t.csv'); >> d = dseries('US_CMR_data_t.csv');
>> d >> d
......
...@@ -20,9 +20,9 @@ function installx13() ...@@ -20,9 +20,9 @@ function installx13()
if ~exist('x13.zip','file') if ~exist('x13.zip','file')
if ( ~isoctave() && verLessThan('matlab', 'R2014b') ) if ( ~isoctave() && verLessThan('matlab', 'R2014b') )
websave('x13.zip', 'http://www.dynare.org/x13/x13.zip'); websave('x13.zip', 'https://www.dynare.org/x13/x13.zip');
else else
urlwrite('http://www.dynare.org/x13/x13.zip', 'x13.zip'); urlwrite('https://www.dynare.org/x13/x13.zip', 'x13.zip');
end end
unzip('x13.zip'); unzip('x13.zip');
if ismac() if ismac()
......
...@@ -245,7 +245,7 @@ end % classdef ...@@ -245,7 +245,7 @@ end % classdef
%$ t = zeros(8, 1); %$ t = zeros(8, 1);
%$ %$
%$ try %$ try
%$ [strfile, status] = urlwrite('http://www.dynare.org/Datasets/dseries/dynseries_test_data.m','dynseries_test_data.m'); %$ [strfile, status] = urlwrite('https://www.dynare.org/Datasets/dseries/dynseries_test_data.m','dynseries_test_data.m');
%$ if ~status %$ if ~status
%$ error() %$ error()
%$ end %$ end
...@@ -273,7 +273,7 @@ end % classdef ...@@ -273,7 +273,7 @@ end % classdef
%$ t = zeros(8, 1); %$ t = zeros(8, 1);
%$ %$
%$ try %$ try
%$ [strfile, status] = urlwrite('http://www.dynare.org/Datasets/dseries/dynseries_test_data.mat','dynseries_test_data.mat'); %$ [strfile, status] = urlwrite('https://www.dynare.org/Datasets/dseries/dynseries_test_data.mat','dynseries_test_data.mat');
%$ if ~status %$ if ~status
%$ error() %$ error()
%$ end %$ end
...@@ -301,7 +301,7 @@ end % classdef ...@@ -301,7 +301,7 @@ end % classdef
%$ t = zeros(10, 1); %$ t = zeros(10, 1);
%$ %$
%$ try %$ try
%$ [strfile, status] = urlwrite('http://www.dynare.org/Datasets/dseries/dynseries_test_data.csv','dynseries_test_data.csv'); %$ [strfile, status] = urlwrite('https://www.dynare.org/Datasets/dseries/dynseries_test_data.csv','dynseries_test_data.csv');
%$ if ~status %$ if ~status
%$ error() %$ error()
%$ end %$ end
...@@ -405,9 +405,9 @@ end % classdef ...@@ -405,9 +405,9 @@ end % classdef
%@test:9 %@test:9
%$ try %$ try
%$ if isoctave() %$ if isoctave()
%$ [strfile, status] = urlwrite('http://www.dynare.org/Datasets/dseries/dynseries_test_data-1.xlsx','dynseries_test_data-1.xlsx'); %$ [strfile, status] = urlwrite('https://www.dynare.org/Datasets/dseries/dynseries_test_data-1.xlsx','dynseries_test_data-1.xlsx');
%$ else %$ else
%$ [strfile, status] = urlwrite('http://www.dynare.org/Datasets/dseries/dynseries_test_data-1.xls','dynseries_test_data-1.xls'); %$ [strfile, status] = urlwrite('https://www.dynare.org/Datasets/dseries/dynseries_test_data-1.xls','dynseries_test_data-1.xls');
%$ end %$ end
%$ if ~status %$ if ~status
%$ error() %$ error()
...@@ -442,9 +442,9 @@ end % classdef ...@@ -442,9 +442,9 @@ end % classdef
%@test:10 %@test:10
%$ try %$ try
%$ if isoctave() %$ if isoctave()
%$ [strfile, status] = urlwrite('http://www.dynare.org/Datasets/dseries/dynseries_test_data-2.xlsx','dynseries_test_data-2.xlsx'); %$ [strfile, status] = urlwrite('https://www.dynare.org/Datasets/dseries/dynseries_test_data-2.xlsx','dynseries_test_data-2.xlsx');
%$ else %$ else
%$ [strfile, status] = urlwrite('http://www.dynare.org/Datasets/dseries/dynseries_test_data-2.xls','dynseries_test_data-2.xls'); %$ [strfile, status] = urlwrite('https://www.dynare.org/Datasets/dseries/dynseries_test_data-2.xls','dynseries_test_data-2.xls');
%$ end %$ end
%$ if ~status %$ if ~status
%$ error() %$ error()
...@@ -479,9 +479,9 @@ end % classdef ...@@ -479,9 +479,9 @@ end % classdef
%@test:11 %@test:11
%$ try %$ try
%$ if isoctave() %$ if isoctave()
%$ [strfile, status] = urlwrite('http://www.dynare.org/Datasets/dseries/dynseries_test_data-3.xlsx','dynseries_test_data-3.xlsx'); %$ [strfile, status] = urlwrite('https://www.dynare.org/Datasets/dseries/dynseries_test_data-3.xlsx','dynseries_test_data-3.xlsx');
%$ else %$ else
%$ [strfile, status] = urlwrite('http://www.dynare.org/Datasets/dseries/dynseries_test_data-3.xls','dynseries_test_data-3.xls'); %$ [strfile, status] = urlwrite('https://www.dynare.org/Datasets/dseries/dynseries_test_data-3.xls','dynseries_test_data-3.xls');
%$ end %$ end
%$ if ~status %$ if ~status
%$ error() %$ error()
...@@ -516,9 +516,9 @@ end % classdef ...@@ -516,9 +516,9 @@ end % classdef
%@test:12 %@test:12
%$ try %$ try
%$ if isoctave() %$ if isoctave()
%$ [strfile, status] = urlwrite('http://www.dynare.org/Datasets/dseries/dynseries_test_data-4.xlsx','dynseries_test_data-4.xlsx'); %$ [strfile, status] = urlwrite('https://www.dynare.org/Datasets/dseries/dynseries_test_data-4.xlsx','dynseries_test_data-4.xlsx');
%$ else %$ else
%$ [strfile, status] = urlwrite('http://www.dynare.org/Datasets/dseries/dynseries_test_data-4.xls','dynseries_test_data-4.xls'); %$ [strfile, status] = urlwrite('https://www.dynare.org/Datasets/dseries/dynseries_test_data-4.xls','dynseries_test_data-4.xls');
%$ end %$ end
%$ if ~status %$ if ~status
%$ error() %$ error()
......
...@@ -360,7 +360,7 @@ return ...@@ -360,7 +360,7 @@ return
t = zeros(5,1); t = zeros(5,1);
try try
[strfile, status] = urlwrite('http://www.dynare.org/Datasets/dseries/dynseries_test_data.csv','dynseries_test_data.csv'); [strfile, status] = urlwrite('https://www.dynare.org/Datasets/dseries/dynseries_test_data.csv','dynseries_test_data.csv');
if ~status if ~status
error() error()
end end
......
...@@ -195,7 +195,7 @@ varlist = strrep(varlist,'"',''); ...@@ -195,7 +195,7 @@ varlist = strrep(varlist,'"','');
%@test:1 %@test:1
%$ % Download csv file with data. %$ % Download csv file with data.
%$ urlwrite('http://www.dynare.org/Datasets/data_ca1_csv.csv','data_ca1_csv.csv'); %$ urlwrite('https://www.dynare.org/Datasets/data_ca1_csv.csv','data_ca1_csv.csv');
%$ %$
%$ % Instantiate a dseries from the data in the csv file. %$ % Instantiate a dseries from the data in the csv file.
%$ try %$ try
......
...@@ -189,7 +189,7 @@ end ...@@ -189,7 +189,7 @@ end
%@test:4 %@test:4
%$ try %$ try
%$ [strfile, status] = urlwrite('http://www.dynare.org/Datasets/dseries/dd.csv','dd.csv'); %$ [strfile, status] = urlwrite('https://www.dynare.org/Datasets/dseries/dd.csv','dd.csv');
%$ if ~status %$ if ~status
%$ error() %$ error()
%$ end %$ end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment