LabVIEW Web Development Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Get does not work for certain websites

Solved!
Go to solution

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.

 

 

Download All
0 Kudos
Message 1 of 5
(5,047 Views)
Solution
Accepted by topic author Thomasschoenau

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:

 

lv2016.PNG


Milan
Message 2 of 5
(4,983 Views)

Thanks for your reply,

I also succeded by using a more recent LabView Version (2017). It seems that LabView 2010 is just too old ...

 

0 Kudos
Message 3 of 5
(4,972 Views)

@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. 

0 Kudos
Message 4 of 5
(4,904 Views)

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

James Mc
========
CLA and cRIO Fanatic
My writings on LabVIEW Development are at devs.wiresmithtech.com
0 Kudos
Message 5 of 5
(4,883 Views)