Using Python Request function in MATLAB
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Robert Snoeberger
am 13 Mai 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'));
Antworten (0)
Siehe auch
Kategorien
Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!