LabVIEW Web Development Discussions

취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

HTTP Get does not work for certain websites

해결 완료!
솔루션으로 이동

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.

 

 

모두 다운로드
0 포인트
1/5 메시지
6,756 조회수
솔루션
주제 작성자 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
2/5 메시지
6,692 조회수

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 포인트
3/5 메시지
6,681 조회수

@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 포인트
4/5 메시지
6,613 조회수

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
========
Ask me about Rust & NI Hardware
My writings are at https://www.wiresmithtech.com/devs/
0 포인트
5/5 메시지
6,592 조회수