Copy web page contents as a string or text document

I am trying to copy the contents of a web page (e.g. https://www.iso.org/obp/ui/#iso:code:3166:AF) as a string or to a text document without first open it because browsers will refuse this. As I am a total beginner with Xojo could anybody give me any suggestions on how to proceed? thanks
tony dm

You need to use an URLConnection. There is an example called “URLConnectionGET.xojo_binary_project” which does what you want.

1 Like

Thank you, I’ll try it

Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.