×

Get Contents of URL

iOS 14 +

Notes

Downloads the contents at the given URL. When making a form or JSON request, use the request JSON parameter. The JSON form does not except variables, it must be written in JSON or using the dictionary builder. When using a file request type, use the request variable parameter.

Syntax

downloadURL(url: <#String (Allows Variables)#>, method: <#Enumeration (WFHTTPMethod)#>, headers: <#Dictionary#>, requestType: <#Enumeration (WFHTTPBodyType)#>, requestJSON: <#Dictionary#>, requestVar: <#Variable#>)

Example

downloadURL(url: "https://jellycuts.com", method: POST, headers: {}, requestType: Json, requestJSON: {"name": "Zach"}, requestVar: )