ph_saveitcurl PowerHome formula function
Description
Saves the data from the specified URL using a Microsoft ITC (Internet Transfer Control)
Syntax
ph_saveitcurl ( s, s, n, n )
Argument |
Description |
s
|
The URL you wish to save.
|
s
|
The directory / filename you wish to save to.
|
n
|
The write mode to use when saving. A 0 will cause the data to be appended to the file if it exists. Any other value will replace the file if it exists.
|
n
|
The timeout in seconds for the request to be executed. Use 0 for infinity.
|
Return value
Integer. Returns 0 if successful. 1 is returned if the file cannot be opened. 2 is returned if the timeout value is exceeded. 3 is returned if the ITC encounters an error. 4 is returned if a runtime error occurs.