I'm trying to read a simple text string from a website into my LabWindows CVI program. I've looked everywhere but can't find an example of using a simple HTTP GET request.
Does anyone know if this can be accomplished in LabWindows?
Here's the website text I'm trying to read: http://www.swpc.noaa.gov/ftpdir/latest/wwv.txt
Got it. LabWindows allows this kind of functionality through Telnet services.
First you do a "InetTelnetOpen" to open the connection.
Then you do "InetTelnetWrite" and write the "GET ..." message.
Then you do "InetTelnetReadUntil" and read until the string "/html>" to get all the site's text.
LabWindows truly is an awful, poorly documented language.