ConnectionSettings

ConnectionSettings

is an option for URLRead and related functions to specify advanced connection settings.

Details

  • ConnectionSettings takes an association with the following keys:
  • "MaxDownloadSpeed"Automaticmaximum allowed download speed
    "MaxUploadSpeed"Automaticmaximum allowed upload speed
    "ProxySettings"Automaticsettings for connecting to the internet via a proxy server
  • Maximum download and upload speed settings are approximate speed settings.
  • Maximum download and upload speeds can be given as Quantity expressions.
  • Speeds given as integers are interpreted as bytes per second.
  • "ProxySettings" takes an association or a list of associations with the following keys:
  • "URL"Nonethe proxy URL
    "Port"Automaticthe proxy port
    "Username"Noneusername for the proxy server
    "Password"Nonepassword for the proxy server

Examples

Basic Examples  (3)

Download at 12,500 bytes per second:

In[1]:=
Click for copyable input
Out[1]=

Download at 100 Kbps:

In[1]:=
Click for copyable input
Out[1]=

Download at twice the speed:

In[2]:=
Click for copyable input
Out[2]=

Create an APIFunction returning the number of characters in a string:

In[1]:=
Click for copyable input
Out[1]=

Deploy the APIFunction to the cloud:

In[2]:=
Click for copyable input
Out[2]=

Get the URL:

In[3]:=
Click for copyable input
Out[3]=

Create a long string:

In[4]:=
Click for copyable input
Out[4]=

Upload the string to the API at 400 Kbps:

In[5]:=
Click for copyable input
Out[5]=

Upload the string to the API at 800 Kbps:

In[6]:=
Click for copyable input
Out[6]=

The expected time to upload a 100,000 character string at 800 Kbps is about one second:

In[7]:=
Click for copyable input
Out[7]=
Introduced in 2019
(12.0)