Solved! Go to Solution.
This thread is quite old, but it's the first hit for a search with the terms "http get tcp", so I figure this is the best place to add my suggestion (even though it doesn't address the OP's question). The easiest way to get up and running with HTTP requests is with a pair of examples from DevZone . I was able to modify the "Example HTTP GET method" VI to use the HEAD request instead (which is a way to check for the existence of a file on a server without fetching it).
 Example HTTP Protocols
NI Modular Instruments Application Software Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Modular Instruments Application Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2016)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
I have a IP POWER Switch 9258 that Supports HTTP, DDNS , SMTP, SNMP, INTERNET- fixed IP, DHCP, LAN - virtual IP.
I am attempting to issue a Http command via labview 8.2 to turn on and off the individual switches.
In the documentation on page 19 of 24, it says to use the following command in a browser:
However when I attempt to us a linux browser with this command nothing happens. I can however login to the page by specifying the IP Address and at the page logging into the device. Ultimately I am attempting to use TCP vi's to post this command line from my vi.
Any ideas on using the TCP vi with this requirement?
It sounds like you have found the Active and Passive example VIs, great! You indicated that you were having trouble getting it to work in Linux and Windows, what changed to make it start working? Have you tried using a packet sniffer like WireShark? Perhaps there is information that is not getting sent with the TCP VIs.
I think so far the problem is I am not sending the correct Posting header? I worked with Example_HTTP, specifically the POST vi. This activates all the switches to on. Here is what I am trying to pass to the server: