02-06-2013 09:03 AM
I would like to do a HTTP POST in LabWindows CVI. Do you have any suggestion?
I have successfully done that in Visual Studio using C++ with the libcurl library.
But, when I was trying to migrate my libcurl into CVI, it does not compile.
Please advise.
Thank you,
02-07-2013 05:23 PM
I do not think we have any HTTP libraries, but here is an example of making HTTP Requests using .NET Controllers in LabWindows/CVI.
Hope it helps!
02-08-2013 08:07 AM
I've done this in CVI using the telnet library and manually putting together the appropiate commands to send to the web server. It's a bit tedious but I made it work.
07-08-2015 11:38 AM
Hello ,
I have some difficulties to make it work, can you send me you source please.
Thanks a lot.
Rgds
07-22-2015 02:53 AM
Hi Sebi,
To make an HTTP POST with labwindows you have to use ConnectToTCPServer (with port number = 80 ) to connect to your server.
And then ClientTCPWrite/ClientTCPRead to send your POST request and read back answer.
Here is a sample POST request to be sent by ClientTCPWrite :
POST /yourpath HTTP/1.1
From: yoururl.com
User-Agent: yourtool
Content-Type: text/plain
Content-Length: 20
some data to be sent
Regards,
Stef