ph_saveurlviaproxy PowerHome formula function
Description
Retrieves the specified URL via a proxy and saves the returned body to a file.
Syntax
ph_saveurlviaproxy ( s, s, n, s, s, n )
Argument Description
s String representing URL you wish to retrieve.
s String identifying the proxy server you wish to use.
n Integer identifying the port of the proxy server.
s String identifying the userid and password for the proxy server. Separate the userid from the password using a colon character. Example: userid:password.
s String representing the full path and filename you wish to save the URL's data to.
n Integer representing whether to overwrite the file if it exists or append to it. A 0 will cause the data to be appended to the existing file. Any other value will cause the file to be replaced.
Return value
String. Returns the http header of the requested URL if the function succeeds. Otherwise, a message indicating the error is returned.
Usage
Use this function to retrieve and save HTML, text, graphic, or binary data from a URL to a file. Same as the ph_saveurl function except you have the option to specify specific proxy server information.