Fetch Web Pages (Web HTTP Files)Author: Carl Sassenrath This example fetches a web page (transfers web page using HTTP) and stores it to a local file. For text files such as HTML, use the READ function to fetch the page and WRITE to save it to a file:
For binary files such as images or programs, add the /binary refinement:
Do not forget to use /binary for these types of files, otherwise they will not be properly fetched and stored. It is safe to always use /binary if you are unsure what type of file it is.
That's all there is to fetching web pages. Easy. |