Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Overwrite the default CURL options passed to all Wolfram Language CURL handles
ResourceFunction["SetGlobalCURLOptions"]["option"→value, …] sets CURL option to value globally. | |
ResourceFunction["SetGlobalCURLOptions"][Default] reverts to default CURL behavior. |
Overwrite the system default redirect behavior:
| In[1]:= |
| Out[1]= |
Redirects are now stopped:
| In[2]:= |
| Out[2]= |
Revert back to the defaults:
| In[3]:= |
| Out[3]= |
Redirects now are followed:
| In[4]:= |
| Out[4]= |
SetGlobalCURLOptions accepts any of the options listed with CURLLink`$CURLOptions:
| In[5]:= |
| Out[5]= |
Trying to revert to default without any changes will do nothing:
| In[6]:= |
| Out[6]= |
Running more than once will append to the options list:
| In[7]:= | ![]() |
| Out[8]= |
Resetting to defaults Unsets $GlobalCURLOptions:
| In[9]:= |
| Out[10]= |
Providing an unsupported option will print an error message and return a Failure:
| In[11]:= |
| Out[11]= |
Wolfram Language 12.3 (May 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License