HTTPGET$( )

HTTPGET$( url$ )

Description:

Fetch the contents of a web page from the URL address in url$.  The information returned is usually in HTML format, but it can be in any format as the web server may contain files in various formats.

Usage:

  htmlText$ = httpget$("http://www.libertybasic.com")
  print htmlText$

Note: If the server or file requested does not exist or if there is some error in the retrieval of the file, the resulting string will usually be empty.  Sometimes the Internet service provider will return its own file which may contain error information.  Your program will need to detect these conditions.