Whether we use the timeout parameter or not, we would be using this method in a asynchronous way. The third parameter is optional and it allows us to set the timeout period associated with the request (defaults to 60 seconds). The first one is the “Method” -Get in this case-, and the second is the source URL we are going to use to get the response (the data). Var feedXML As String = http.Send("GET,"")Īs you can see, the “Send” method expects two mandatory parameters. For that we just have to make the request against the remote Web Server using the “Get” method from our URLConnection sublcass.įor instance, we can get the data associated with an RSS feed using the standard URLConnection class this way: Var http as new URLConnection So, using a new instance (object) from our class we will be able to get the XML data associated with an RSS feed. In fact, we will create our own subclass based on URLConnection, so we can write the specialized behaviour that we expect from an RSS feed parser.īut before that, and as you can read in the documentation available about the URLConnection, this class allows us to receive and send information using the HTTP protocol. Undoubtedly, URLConnection is the main class we are going to use in this tutorial. Ready? Start your engines with the Xojo IDE! URLConnection, the class to talk HTTP
#Xojo html viewer code
But you will learn how useful some of the available Xojo classes are, and you can use the code as the starting point for your own more dazzling RSS Reader. It won’t be an RSS Reader with all the bells and whistles – 33 lines of code does have its limits.
![xojo html viewer xojo html viewer](https://www.aprendexojo.com/wp-content/uploads/2020/03/MicrosoftTeams-image-768x476.png)
In fact, this article shows you how can create a multi-platform RSS Reader…writing just 33 lines of code!
![xojo html viewer xojo html viewer](https://www.aprendexojo.com/wp-content/uploads/2018/09/Menus-200x200.png)
You have heard it many times: coding with Xojo is not just powerful and fun, it is fast, really fast! This is thanks to the fact that you have at your disposal the powerful Xojo Framework, with a lot of classes ready to use doing the hard work behind the scenes.