Using Python Request function in MATLAB
2 views (last 30 days)
Show older comments
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 Comment
Robert Snoeberger
on 13 May 2015
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'));
Answers (0)
See Also
Categories
Find more on Call Python from MATLAB 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!