LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Does anyone have an example of using the HTTP GET command in CVI.

I am trying to communicate with a device on my local network. It resonds to HTTP GET commands such as http:///apigetstatus.asp
0 Kudos
Message 1 of 3
(3,018 Views)
Hi Frankp,

Have you tried using the DataSocket library? I know that DataSocket can perform data transfers to and from HTTP, FTP, and OPC servers, files, and DSTP servers.

Some example programs can be found in NI LabWindows CVI Help, which is packaged and installed with the application.

Go to the Contents tab, and select Example Programs --> Communication Examples --> DataSocket Examples for a list.

Also, you can read this document that gives a brief overview of the DataSocket Protocol.

Hope this helps! Let me know if you have any more questions and I will be more than happy to assist you further. Good Luck!

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 2 of 3
(3,017 Views)
You can use datasockects but my co-worker has found some bugs with it.
And our device required entering user authentication information which
datasockets library doesn't support. So we just relying on low level TCP
functions from the windows SDK. It is easy. Open TCP connection to port
80. You will have send appropriate HTTP header to your device by using
TCP write and read the response back using TCP read.

frankp wrote:
> I am trying to communicate with a device on my local network. It
> resonds to HTTP GET commands such as http://
> address>/apigetstatus.asp
0 Kudos
Message 3 of 3
(3,017 Views)