Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

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,464 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,452 Views)
Solution
Accepted by Andreas111

Wire the URL to the URL input.

Wire the data to the buffer input.

Message 3 of 3
(4,449 Views)