Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Linux curl is not showing the data
Hi Community,
I am trying to get some data from a webpage written in Vaadin using linux curl command, but I am not getting the data in response. I bet below as response. If I use developer tools or firebug I can see the data in the below red highlight.
Can someone please help me to find the correct curl sytax to get the data? I wont be able to use firebug to extract data as I have to create an automation on my linux server. I should be command line only. There are almost 50 such web links from where i need to extract data and show it in a single place. Hoping to get some solution.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type="text/css">html, body {height:100%;margin:0;}</style><link rel="shortcut icon" type="image/vnd.microsoft.icon" href="/AirShopMonitor/VAADIN/themes/xxxxxxxxxx/favicon.ico" /><link rel="icon" type="image/vnd.microsoft.icon" href="/AirShopMonitor/VAADIN/themes/xxxxxxxx/favicon.ico" /><title>SOA Monitor Application</title> </head> <body scroll="auto" class="v-generated-body"> <script type="text/javascript"> //<![CDATA[ if(!vaadin || !vaadin.vaadinConfigurations) { if(!vaadin) { var vaadin = {}} vaadin.vaadinConfigurations = {}; if (!vaadin.themesLoaded) { vaadin.themesLoaded = {}; } document.write('<iframe tabIndex="-1" id="__gwt_historyFrame" style="position:absolute;width:0;height:0;border:0;overflow:hidden;" src="javascript:false"></iframe>'); document.write("<script language='javascript' src='/AirShopMonitor/VAADIN/widgetsets/com.ui.widgetset.VaadinrefresherWidgetset/com.ui.widgetset.VaadinrefresherWidgetset.nocache.js?1462877064955'><\/script>"); } vaadin.vaadinConfigurations["AirShopMonitormonitor-1439371744"] = {appUri:'/AirShopMonitor/monitor', standalone: true, themeUri:"/AirShopMonitor/VAADIN/themes/xxxxxxxx", versionInfo : {vaadinVersion:"6.7.6",applicationVersion:"NONVERSIONED"},"comErrMsg": {"caption":"Communication problem","message" : "Take note of any unsaved data, and <u>click here<\/u> to continue.","url" : null},"authErrMsg": {"caption":"Authentication problem","message" : "Take note of any unsaved data, and <u>click here<\/u> to continue.","url" : null}}; //]]> </script> <script type="text/javascript"> //<![CDATA[ if(!vaadin.themesLoaded['xxxxxxxx']) { var stylesheet = document.createElement('link'); stylesheet.setAttribute('rel', 'stylesheet'); stylesheet.setAttribute('type', 'text/css'); stylesheet.setAttribute('href', '/AirShopMonitor/VAADIN/themes/xxxxxxxx/styles.css'); document.getElementsByTagName('head')[0].appendChild(stylesheet); vaadin.themesLoaded['xxxxxxxx'] = true; } //]]> </script> <script type="text/javascript"> //<![CDATA[ setTimeout('if (typeof com_ui_widgetset_VaadinrefresherWidgetset == "undefined") {alert("Failed to load the widgetset: /AirShopMonitor/VAADIN/widgetsets/com.ui.widgetset.VaadinrefresherWidgetset/com.ui.widgetset.VaadinrefresherWidgetset.nocache.js?1462877064955")};',15000); //]]> </script> <div id="AirShopMonitormonitor-1439371744" class="v-app v-theme-xxxxxxxx v-app-AirShopMonitor" ><div class="v-app-loading"></div></div> <noscript>You have to enable javascript in your browser to use an application built with Vaadin.</noscript></body> </html>
Thanks,
Sourin Maiti
Hi,
I could be wrong, but I don't think you can get anything with curl, as you'd need to execute JavaScript for the Vaadin application to work. You might have better luck with a headless browser.
Best regards,
Olli