curl - urlread(), urlwrite() don't work for https pages in Octave for Windows -



curl - urlread(), urlwrite() don't work for https pages in Octave for Windows -

when utilize octave 3.8.1 installed in cygwin, can download https pages this:

urlwrite('https://www.google.com', 'downloaded.html')

however, when utilize octave 3.6.4 installed in windows 7 sp1 pro 64bit, urlwrite() doesn't work:

octave-3.6.4.exe:18> urlwrite('https://www.google.com', 'downloaded.html') error: urlwrite: curl: problem ssl ca cert (path? access rights?)

urlread() has same problem. there way avoid error?

update:

following andy's advice, tried prepare curl-related problem. @ moment, curl.exe can work https, libcurl (i think embedded in octave) doesn't work https. allow me explain did.

i downloaded curl.exe here. @ first, doesn't work https this:

c:\somewhere\curl-7.33.0-win64-nossl>curl https://www.google.com/ curl: (1) protocol https not supported or disabled in libcurl

after downloaded "cacert.pem" here, renamed "curl-ca-bundle.crt", , set in c:\windows\system32, curl.exe can extract pages https sites.

however, when utilize urlwrite() in octave, it's still not working. guess octave internally calls libcurl api, don't know how forcefulness libcurl find ca certs.

i have same probem using urlread() in octave 4.0.0 windows. tried few things none worked. did manage curl command line tool work tho. in end easiest thing me write own urlread() called curl using octave's system() function:

function retval=my_urlread(url) command=['curl --silent ','"',url,'"']; [output,text]=system(command); retval=text; endfunction

curl octave

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -