Datastreamws error (HTTPs)

25 次查看(过去 30 天)
Leonardo Ricci
Leonardo Ricci 2021-10-30
Hello everyone,
I'm trying to use Datafeed toolbox. During my login trought Matlab via datastreamws, it says there is an error concerning http and https protocols:
Error using datastreamws (line 103)
HTTP is an insecure protocol, use HTTPS instead..
I have tryed to check if there were possibilities to change it directly from datastreamws script, but I can not find anything. Do you have any suggestions?
Thank you in advance
Leonardo Ricci

回答(1 个)

Pratyush Roy
Pratyush Roy 2021-11-2
Hi Leonardo,
Currently, DATASTREAMWS does use HTTP in the endpoint. To work around the issue and use the HTTPS protocol through our interface, use the following code:
d = datastreamws("","","https://product.datastream.com/DSWSClient/V1/DSService.svc/rest/Token?username=user&password=pword")
d.URL = "https://product.datastream.com/DSWSClient/V1/DSService.svc/rest/GetData"
where user and pword are your username and password. After connecting with this syntax, you should be able to make historical requests.
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by