Using Python Request function in MATLAB
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commento
Robert Snoeberger
il 13 Mag 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'));
Risposte (0)
Vedere anche
Categorie
Scopri di più su Call Python from MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!