Using matlab.net.http.RequestMessage.Send with NTLM authentication
Show older comments
Good day,
I have a need to call a web API from my matlab code which has been secured with NTLM authentication on the server side.
I tried the following matlab functionality but cannot seem to get around the authentication problem: 1) webwrite 2) matlab.net.http.RequestMessage.send(scope, options) where options = HTTPOptions('Credentials',Credentials('Username','xyz','Password','abc','Scope',URI(strUrl)),'ConnectTimeout',30)
Can you advise if/how I can make the web call work under NTLM authentication.
Thank you. Thien
Answers (2)
Thien Pham
on 23 Oct 2017
1 vote
1 Comment
Andrew Stamps
on 23 Oct 2017
Thank you. This is generally what I needed.
Morrie Gasser
on 7 Aug 2017
0 votes
Unfortunately, as of R2017a, the HTTP interface (classes in matlab.net.http) and webwrite do not support NTLM. It is supported by webread, but only for the GET method.
2 Comments
Thien Pham
on 7 Aug 2017
Andrew Stamps
on 20 Oct 2017
Thien,
Any chance you could share this workaround? I am experiencing a similar issue.
Thanks, Andy
Categories
Find more on Call Web Services from MATLAB Using HTTP in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!