09-30-2017 01:11 PM
Dear forum members,
I am trying to read out html-content of websites by using the HTTPClient-Get.vi.
For some websites, like for example https://www.amazon.de/ this is working without any problems (see appended picture).
But for some other websites, however, the HTTPClient-Get.vi always produces some "generic error". For example, I am not able to retreive data from https://www.onvista.de/ .
In order to rule out problems related to the missing user agent, I recorded the header of the GET-command which is produced by the mozilla web-browser and incorporated this whole header into my LabView-based request. Furthermore, I also added the SSLConfig.vi, but all these measures did not lead to success (complete code shown in 2nd picture).
So does anyone has an idea why it does not work for https://www.onvista.de/ ?
I am using LabView 2010 SP1 with Internet Toolkit installed.
Solved! Go to Solution.
10-14-2017 03:19 PM
I used the HTTP Get VI to query http://www.onvista.de using both LabVIEW 2011 SP1 and LabVIEW 2016 without any error returned on the error wire. Below is a screenshot of the data returned using LabVIEW 2016:
10-16-2017 02:30 AM
Thanks for your reply,
I also succeded by using a more recent LabView Version (2017). It seems that LabView 2010 is just too old ...
11-10-2017 03:19 AM - edited 11-10-2017 03:52 AM
@MilanR wrote:
I used the HTTP Get VI to query http://www.onvista.de using both LabVIEW 2011 SP1 and LabVIEW 2016 without any error returned on the error wire. Below is a screenshot of the data returned using LabVIEW 2016:
Milan R
Hi, I am very new to internet web page interface to labview, came here after following your tutorial on youtube. I want to ask that what type of data this http get picks and how can we utilize this, like I want to pick some particular data from a website and want to turn off or on the LED based on that data, can I do that in labview.
Your reply will be highly appreciated.
Thanks.
11-13-2017 04:44 AM
Hi Faradizer,
You may have more luck starting a new thread than reposting on an old one. Feel free to do that and post a link here.
Try and include an example of the data format. Web interfaces tend to be JSON or XML formatted data and there are libraries in LabVIEW for working with both of them.
Cheers,
James