How Do I Retrieve a Web Page or Other URL Content? (Magic xpa 4.x)
You can retrieve a copy of a web page, or any other URL content, by its URL using the HTTPGet() function.
-
Use HTTPGet() to update a BLOB. The syntax is:
HTTPGet(URL, Arg1, Arg2, ...)
Where URL is the web site’s URL, and Argx are additional request header information.
-
You can save the BLOB as a file using Blb2File().
-
If the BLOB is a file ending in .htm, you can pass the filename as an OS Cmd and a browser will be called to view the HTML as a web page.
HTTPGet() function in the Magic xpa Help
The Online and Rich Client Samples projects (program EL05 and REL05)