ReceiveHTTPFile()

Syntax

Result = ReceiveHTTPFile(URL$, Filename$)
Description
Download a file to disk from the given URL$. If the URL$ is not found or another error occured, 'Result' will be 0.

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

Supported OS

All

<- GetURLPart() - Http Index - SetURLPart() ->