×

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) (Optional)#>, headers: <#Dictionary (Optional)#>, requestType: <#Enumeration (WFHTTPBodyType) (Optional)#>, requestJSON: <#Dictionary (Optional)#>, requestVar: <#Variable (Optional)#>)

Example

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