G Web Development Software

cancel
Showing results for 
Search instead for 
Did you mean: 

retrieve data from an API link

I want to retrieve data from an API link of cloud server. I have used HTTP GET method  in PC Labview, it works well. But when I use HTTP GET in G web environment, it does not work and shows lot of network errors.

For example API link: http://www.finapptech.com/finapp/api/getCSV.php?SN=862531042531534&D=1 

0 Kudos
Message 1 of 3
(1,249 Views)

Being more specific about the errors you're seeing will help getting answers.

 

Keep in mind that G Web apps run in browsers and are subject to a host of new security restrictions that running in browsers brings. There are specific protections for accessing data from different domain names than the main page is loaded from, for instance. Stuff like this isn't a problem for desktop apps as they're making requests directly to the API and don't live in the context of a webpage loaded from a different source than the API. This is the CORS problem. No clue if it's your problem but it can be a common tripping point and more details about the errors can help identify what the issue is.

~ Helping pave the path to long-term living and thriving in space. ~
0 Kudos
Message 2 of 3
(1,223 Views)

Thanks for quick response

I have met the same issue when I try to test a HTTP-GET simple program in two case of VI Project and Web Application Project. In VI Project, the program works well, but in Web Application Project it is not with the same error from networks.

0 Kudos
Message 3 of 3
(1,215 Views)