Network functions

Functions for calling external APIs and sites.

Get­Remo­te­Ip
Use this to get the user's IP address from the current request.
Down­load­Fro­mUr­l(url)
Downloads text from specified URL.
Down­load­Fro­mUrl6­4(url)
Downloads text from specified URL and BASE64 encodes it.
Http­Get(url, headers)
Calls specified web service and expects JSON. Parses JSON to object.
Http­Put(url, data, headers)
Calls specified web service with method PUT. Expects JSON. Parses JSON to object.
Http­Pos­t(url, data, headers)
Calls specified web service and expects JSON. Parses JSON to object.
Http­Form­P­os­t(url, data, headers)
Same as HttpPost but with values posted in a form setup.
Ge­tUp­load­B­ase6­4(filename)
Returns a file by name from the uploaded form as an base64 encoded string.
Ge­tUp­load­s
Returns a an array of uploaded files. Use this function to support uploading files through your custom Docly pure JS API's.