08-21-2001 09:08 AM
Solved! Go to Solution.
08-21-2001 11:12 AM
08-23-2001 04:56 PM
08-21-2001 12:03 PM
08-23-2001 04:52 PM
10-23-2008 10:47 AM
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 [1]. 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).
[1] Example HTTP Protocols
http://zone.ni.com/devzone/cda/epd/p/id/3153
Joe Friedchicken
NI Configuration Based Software Get with your fellow OS users
[ Linux ] [ macOS ]Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
03-05-2009 08:54 PM
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.
ftp://ftp.opengear.com/manual/IP%20POWER%209258%20Quick%20Start%20and%20User%20Manual.pdf.
In the documentation on page 19 of 24, it says to use the following command in a browser:
http://admin:12345678@192.168.0.50/Set.cmd?CMD=SetPower+P60=1+P61=0+P62=0+P63
=1
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?
03-06-2009 02:09 AM
03-10-2009 03:25 PM
Hi Jeff,
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.
03-16-2009 05:46 AM
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:
POST http://admin:12345678@192.168.0.50/Set.cmd?CMD=SetPower+P60=1+P61=0+P62=0+P63
=1