Using Python Request function in MATLAB

조회 수: 2 (최근 30일)
Mathew Thomas
Mathew Thomas 2015년 5월 12일
댓글: Robert Snoeberger 2015년 5월 13일
The requests module works fine from Python, however, there are issues getting it to work from MATLAB. I think the issue is the way I am calling it in MATLAB. Here is what I have:
In Python: (WORKS)
requests.post("https://test.fs.com/start/logic/15", auth=(usr, passw),verify="DigiCertSHA2HighAssuranceServerCA.crt")
In MATLAB:
r = py.requests.get(pyargs('url', url, 'verify', 'False', 'auth','username', 'password'));
Get SSL error....."Seeing SSLError: [Errno 185090050] _ssl.c:340: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib"
Any ideas??
Thank-you !
  댓글 수: 1
Robert Snoeberger
Robert Snoeberger 2015년 5월 13일
The "In Python" and "In MATLAB" code examples are not equivalent. Did you mean:
In MATLAB:
py.requests.post('https://test.fs.com/start/logic/15', pyargs('auth', {'username', 'password'}, 'verify', 'DigiCertSHA2HighAssuranceServerCA.crt'));

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by