LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

"sending xml over http"

I want to send an XML file to an IP address over http
protocol.
0 Kudos
Message 1 of 6
(4,178 Views)
DataSocket can read and write HTTP documents, however you must have an HTTP server that will accept you writing the file. You can use any DataSocket example, in the address instead of "dstp://mmyComputer/myData" you pass "http://myComputer/myFile" and DataSocket will attempt to open an http connection.

CVI 7.1 has now included FTP libraries that you could also use to send the file to an FTP server instead. I see this is as an easier rout to set up, but it depends on your application.

I hope this helps.

Juan Carlos
N.I.
0 Kudos
Message 2 of 6
(4,178 Views)
Hi,
The computer I'm sending the xml file runs under linux.
Will it work using DataSocket ?
0 Kudos
Message 3 of 6
(4,178 Views)
Yes, Datasocket will send the file in HTTP protocol of FTP protocol if you go that route. These ethernet protocols are independent of the OS. You CVI app will run on a Windows Machine only, but the hppt or FTP server can be on any OS.

Good Luck.

Juan Carlos
0 Kudos
Message 4 of 6
(4,178 Views)
Can you give me a link to an example that include
sending file to URL/ip through HTTP
0 Kudos
Message 5 of 6
(4,178 Views)
Can some one help with this problem !!!
0 Kudos
Message 6 of 6
(4,178 Views)