ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cURL Post Messages from Labview

Solved!
Go to solution

Hi friends,

 

i want to send the following message via the Labview Post VI:

 

curl --data "j2000=[2.0,3.0,0.0]" http://localhost:8090/api/main/viewhttp://localhost:8090/api/main/...

 

The message is working via the win10 command prompt window but not in Labview.

Here is the code snippet and the error message

http push.png

grafik.png

 

Greetings

 

0 Kudos
Message 1 of 3
(4,311 Views)

The input to that VI is a URL and a buffer.

 

The HTTP post VI has nothing to do with cURL, which is a command line application that does the same as the VI.

0 Kudos
Message 2 of 3
(4,299 Views)
Solution
Accepted by topic author Andreas111

Wire the URL to the URL input.

Wire the data to the buffer input.

Message 3 of 3
(4,296 Views)