It seems that with Mathematica 8 and 9 it is not possible anymore to download files from SSL encrypted urls. In my case (Fedora 30) on Mathematica 8 (it has no URLSave
yet) I get
<< Utilities`URLTools`
FetchURL["https://codeload.github.com/WolframResearch/\
WolframLanguageForJupyter/zip/master"]
FetchURL::conopen: The connection to URL https://codeload.github.com/WolframResearch/WolframLanguageForJupyter/zip/master cannot be opened. If the URL is correct, you might need to configure your firewall program, or you might need to set a proxy in the Internet connectivity tab of the Preferences dialog (or by calling SetInternetProxy). For HTTPS connections, you might need to inspect the authenticity of the server's SSL certificate and choose to accept it.
While on Mathematica 9 evaluating
URLSave["https://codeload.github.com/WolframResearch/\
WolframLanguageForJupyter/zip/master", CreateTemporary[]]
generates
During evaluation of In[15]:= URLSave::invhttp: SSL connect error. >>
Out[15]= $Failed
I wonder if there are any workarounds available since WRI is obviously not going to provide any patches for such old Mathematica versions. I also asked a similar question regarding Mathematica 10 here.
Answer
Just an addendum for Mathematica 9 on Windows and Linux (Mac should already work).
The problem can be resolved by installing an updated version of the HTTPClient
paclet and restarting the kernel, for example
Map[PacletSiteUpdate, PacletSites[]];
PacletUpdate["HTTPClient"]
(* Out[2]= Paclet[HTTPClient, 9.0.1, <>] *)
Quit
Subsequently this should work without any SSL errors
In[1]:= $Version
Out[1]= 9.0 for Linux x86 (64-bit) (February 7, 2013)
In[2]:= URLFetch["https://codeload.github.com", "StatusCode"]
Out[2]= 200
Comments
Post a Comment