i’m having an issue setting up a sub class for HttpSocket.
my purpose is to call a URL and get the Content returned in to a string.
i set up a class and named it HTTPGetPage and set the super class to "Xojo.Net.HTTPSocket, then set up an event “PageReceived” for the class.
elsewhere i set up a button click;
Dim Sock As HTTPGetPage
Sock.Get(url)
i get an error stating that sock has no method “GET” — under HTTPSocket it should have this method.
also if anyone has an easier way of calling a URL and downloading content ( without having to save it to a folder ) I’m all ears.
Xojo.Net.HTTPSocket does not accept Strings. What you’ve got written there are literals, which the compiler will handle for you, but if you have a constant you need to make sure it’s the right type.