LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Posting xml to server - developmnet vs App

Hello All, 

 

I have some issue regarding xml sending to server.

In development environment of labview, xml is sendig to server, like bellow.
Environment is OpenSuse 15.2 running on Virtual Box.

Here everything works normal, xml is sent to server as it should be.

milan87_0-1759822835741.pngmilan87_1-1759822912310.png

 


When this program is built as application, and placed on client machine which use Debian 10, app is not able to connect to server and get response.
Client network has all access as development env, and server can be pinged without any problem.


I am wondering is there any difference here, and what i can do? An advice is very helpful.
Thanks.

0 Kudos
Message 1 of 10
(270 Views)

Also error code is :

Error
-1967362015
LabVIEWHTTPClient.lvlib:OpenHandle.vi:6450001

0 Kudos
Message 2 of 10
(240 Views)

That means there are missing dependencies. Is curl installed? Is it an https connection? Then you would also need libssh and libcrypto.

0 Kudos
Message 3 of 10
(215 Views)

Hi, 

 

yes it is https.
libssh yes.

milan87_0-1759840503781.png

curl not installed. also i didnt find libcrypto

 

 

0 Kudos
Message 4 of 10
(209 Views)

Hello again,

 

you mean dependencies from labview project?

0 Kudos
Message 5 of 10
(192 Views)

No, I meant system dependencies. As far as I know LabVIEW uses libcurl for its http library, so that would need to be installed. 

If that still does not work, you could try using curl with system exec. 

 

curl system exec POST requestcurl system exec POST request

0 Kudos
Message 6 of 10
(174 Views)

In Debian i can find:

milan87_0-1760002948376.png

Which means that curl library is installed. 

 

But when i tried command curl --version, then i get info:

milan87_1-1760003022507.png

 

So i wondering, maybe curl is not enabled. Is this possible? How to enable? 

 

0 Kudos
Message 7 of 10
(139 Views)

curl is the command line tool, libcurl is the library which can be used by other software (https://daniel.haxx.se/docs/curl-vs-libcurl.html)

to install, execute this on a command line:

sudo apt update
sudo apt install curl

 

 

0 Kudos
Message 8 of 10
(130 Views)

Thanks. 

But if is like so, then it should work without curl, as libcurl is used by otther programs/apps. Right?

Or i am missing something? 

0 Kudos
Message 9 of 10
(100 Views)

Maybe, it might be a version mismatch. Is your LabVIEW version compatible with Debian 10?

You could check which version of libcurl is installed on your development machine and match that with the Debian machine.

0 Kudos
Message 10 of 10
(88 Views)