[prefix_]postProcessDownload

Use this function to validate downloads and report or handle download failures. The optional return values allow the download content or error code to be modified if the function is able to resolve any issues.

Unlike all the other functions, if the feed should be processed with a function prefix but this prefixed function does not exist, it will instead call postProcessDownload.

The return values can be:

NOTE:

The connector will always throw if this function returns or defaults to an error code 300 or greater. The connector will also throw if the resulting content format is not valid XML or JSON.

Inputs: url (string), httperr (number), content (string)
Outputs: [NONE] or httperr (number) or content (string) or httperr,content (number,string)
See also:  

Example

function postProcessDownload(url, httperr, content)
   print(httperr, url)
   if httperr >= 300 then
      print(content)
   end
end

_HP_HTML5_bannerTitle.htm