07-15-2012 03:53 PM
I am trying to use the HTTP Client VIs to implement a version of the C# code found HERE. Unfortunately there are no NI examples of how the client VIs are to be used and my various attempts to string them together only seem to result in "Error 42" (LabVIEW: Generic Error) from the POST vi, rather than returning the headers and body text.
I have also tried using DOTNET calls and was at least able to get the login page returned but could not seem to trigger the login.
I switched to the HTTP Client VIs because they offered an alternate hope and I could at least see where to attach a cookie file with them (though a cookie file may not be the same as reserving space for a session cookie).
Solved! Go to Solution.
07-17-2012 03:44 PM
Hello Warren,
At this point, your best reference is probably the LabVIEW help documentation on the HTTP client VIs you are using, but here are a few examples that might offer some insight as well:
Easy HTTP Client VIs
https://decibel.ni.com/content/docs/DOC-22383
Reading Coordinates Information from Google Maps Web Services Using HTTP Client VIs
https://decibel.ni.com/content/docs/DOC-20762
Additionally, it looks like there was an issue addressed in LabVIEW 2011 related to the Post VI and Error 42 when downloading large files (see CAR 251094 in the 2011 release notes), which might apply in this situation.
I would recommend contacting our support directly to troubleshoot the error you are seeing, particularly as it is so generic. If the lack of examples is a hindrance, definitely create a product suggestion at http://digital.ni.com/applications/psc.nsf/default?OpenForm or by posting on the LabVIEW Idea Exchange (http://forums.ni.com/t5/LabVIEW-Idea-Exchange/idb-p/labviewideas .)
07-17-2012 04:09 PM
Hello Tom,
Thanks for the reply. Yes I had found both the bits that you pointed me two but the first was not so much an example as it was a re-packaging and the second example actually used only a very little (one VI) of the HTTP client VIs and it was not one I needed at the moment.
The day I asked the question on this forum was the day of the spam storm and I had little hope of anyone seeing it under the mountain of all that crap so I also asked the question over on the LAVA forum and got a reply from ShaunR that did provide me with a solution. Go to the LAVA forum to see his suggestion and my tweak to that suggestion that made the VI work.
FWIW, the "product suggestion at http://digital.ni.com/applications/psc.nsf/default?OpenForm" link no longer really works other than as a redirection to the Idea Exchange. At some point soon I do intend to make a suggestion there as it is unusual not to have any NI examples for something as unintuitive as this HTTP stuff.
07-17-2012 04:53 PM
I just looked into the idea exchange and found this same suggestion for NI to provide exampes for the HTTP Client VIs.
It sounds like NI cannot be bothered with this if Declined means what I think it means.
Oh well...
07-17-2012 10:17 PM - edited 07-17-2012 10:20 PM
Did you read the explanation as to why it was declined?
It says it was moved to the CAR database. That means corrective active request. That is much more likely to get action than a new idea will. A CAR means there is a problem that needs to be fixed, while a new idea is just speculation on future improvements on LabVIEW.
There is no guarantee the CAR will be fixed by the next release. But it does have a higher profile within NI as to something that needs to be fixed. And if you can read between the lines on G-money's second post ......
07-18-2012 04:00 AM
Sorry, guess I just got fixated on the "Declined" portion of it.
I guess in my simple-minded own way I would have expected to see "Accepted, moved to CAR list" if the intent was to fix it.
But you clearly read NI-speak better than I do, so I will take the optimistic view and say I look forward to seeing this in the near future.Thanks for pointing out what should have been obvious to me!
07-07-2017 12:49 AM
Easy HTTP Client VIs
https://decibel.ni.com/content/docs/DOC-22383
Why can't I install that package? showing as below: