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,968 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,939 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 [broken link removed 2/26/26]

0 Kudos
Message 3 of 6
(3,935 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,910 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,793 Views)

woops. I think I linked to http.com....

 

Here is the direct URL

http://digital.ni.com/public.nsf/allkb/895A011802EA2C4A862577890051C2C4?OpenDocument 

 

and the Link again

Content-type Must be 'text/plain' When POSTing Non-Key/Value Data to LabVIEW Web Services [broken link removed]

 

-Hunter

Message 6 of 6
(3,773 Views)