Using matlab.net.http.RequestMessage.Send with NTLM authentication
이전 댓글 표시
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
답변 (2개)
Thien Pham
2017년 10월 23일
1 개 추천
댓글 수: 1
Andrew Stamps
2017년 10월 23일
Thank you. This is generally what I needed.
Morrie Gasser
2017년 8월 7일
0 개 추천
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
Thien Pham
2017년 8월 7일
Andrew Stamps
2017년 10월 20일
Thien,
Any chance you could share this workaround? I am experiencing a similar issue.
Thanks, Andy
카테고리
도움말 센터 및 File Exchange에서 Call Web Services from MATLAB Using HTTP에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!