04-03-2023 03:17 AM
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
04-03-2023 10:55 AM
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.
04-03-2023 11:58 AM
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.