Using Python Request function in MATLAB
조회 수: 2 (최근 30일)
이전 댓글 표시
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
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 Center 및 File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!