LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 2010 Web Server- POST request not working

I recently upgraded to LabVIEW 2010, and have Web Service I made in LV2009. I have a client VI that uses the HTTP client post.vi to provide some parameters. The Web VI gets called and executes, but it does not receive any POST data. I also attempted to run the "address book" web server example (C:\Program Files\National Instruments\LabVIEW 2010\examples\comm\webservices\address book). The GET request works when using the find function, but the POST command does not when adding new user data.

 

Is this a known issue with LV2010, or could something be wrongly configured? As I said, both my application and the address book example worked in 2009 using POST requests.

 

Thanks

0 Kudos
Message 1 of 6
(3,757 Views)

I will try and confirm this behavior, but first of all, are you using LV 32 or 64 bt?

0 Kudos
Message 2 of 6
(3,728 Views)

Also... take a look at this Knowledge Base article, this may resolve your issue.


Content-type Must be 'text/plain' When POSTing Non-Key/Value Data to LabVIEW Web Services

0 Kudos
Message 3 of 6
(3,724 Views)

I am using 32 bit.  I have found a workaround by using the Read All Form Data.vi instead of Read Postdata.vi. It provides the same result, but it does not give me the whole string to manipulate as did the Read Postdata VI.

0 Kudos
Message 4 of 6
(3,699 Views)

Hi Hueter,

 

Could you repost the knowledge base link? It doesn't seem to work.

 

Thank you.

0 Kudos
Message 5 of 6
(3,582 Views)
Message 6 of 6
(3,562 Views)