ReceiveHTTPFile()
Syntax
Result = ReceiveHTTPFile(URL$, Filename$)Description
Download a file to disk from the given URL$.
Parameters
URL$ The URL to download from. Filename$ The local filename to write the file to. If the filename does not include a full path, it is interpreted relative to the current directory. If the file exists, it will be overwritten.
Return value
Returns nonzero if the download was successful or zero if not.
Remarks
InitNetwork() has to be called before using this command.
Example
InitNetwork() Filename$ = SaveFileRequester("Where to save index.php3 ?", "", "", 0) If ReceiveHTTPFile("http://www.purebasic.com/index.php3", Filename$) Debug "Success" Else Debug "Failed" EndIf
See Also
GetHTTPHeader(), URLEncoder()
Supported OS
All