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

Using the old HTTP URL makes test fail.
parent c51cfe6d
Pipeline #630 passed with stage
in 46 seconds
......@@ -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
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
......
......@@ -20,9 +20,9 @@ function installx13()
if ~exist('x13.zip','file')
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
urlwrite('http://www.dynare.org/x13/x13.zip', 'x13.zip');
urlwrite('https://www.dynare.org/x13/x13.zip', 'x13.zip');
end
unzip('x13.zip');
if ismac()
......
......@@ -245,7 +245,7 @@ end % classdef
%$ t = zeros(8, 1);
%$
%$ 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
%$ error()
%$ end
......@@ -273,7 +273,7 @@ end % classdef
%$ t = zeros(8, 1);
%$
%$ 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
%$ error()
%$ end
......@@ -301,7 +301,7 @@ end % classdef
%$ t = zeros(10, 1);
%$
%$ 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
%$ error()
%$ end
......@@ -405,9 +405,9 @@ end % classdef
%@test:9
%$ try
%$ 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
%$ [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
%$ if ~status
%$ error()
......@@ -442,9 +442,9 @@ end % classdef
%@test:10
%$ try
%$ 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
%$ [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
%$ if ~status
%$ error()
......@@ -479,9 +479,9 @@ end % classdef
%@test:11
%$ try
%$ 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
%$ [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
%$ if ~status
%$ error()
......@@ -516,9 +516,9 @@ end % classdef
%@test:12
%$ try
%$ 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
%$ [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
%$ if ~status
%$ error()
......
......@@ -360,7 +360,7 @@ return
t = zeros(5,1);
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
error()
end
......
......@@ -195,7 +195,7 @@ varlist = strrep(varlist,'"','');
%@test:1
%$ % 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.
%$ try
......
......@@ -189,7 +189,7 @@ end
%@test:4
%$ 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
%$ error()
%$ 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