- Code: Select all
function mt_iso3166_import() {
var http_iso = plugins.http.createNewHttpClient();
var isopage = http_iso.createGetRequest(iso3166_baseurl);
var result = isopage.executeRequest();
var txt12 = result.getResponseBody();
plugins.file.writeTXTFile("/Users/rioba/DBFA/2019/ISO-3166/test.txt",txt12);
}
This is the result I get: You have to enable javascript in your browser to use an application built with Vaadin
- Code: Select all
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=11;chrome=1">
<style type="text/css">html, body {height:100%;margin:0;}</style>
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="./../VAADIN/themes/iso-red/favicon.ico">
<link rel="icon" type="image/vnd.microsoft.icon" href="./../VAADIN/themes/iso-red/favicon.ico">
</head>
<body scroll="auto" class="v-generated-body">
<div id="obpui-105541713" class="v-app iso-red obpui">
<div class="v-app-loading"></div>
<noscript>
You have to enable javascript in your browser to use an application built with Vaadin.
</noscript>
</div>
<script type="text/javascript" src="./../VAADIN/vaadinBootstrap.js?v=7.7.9"></script>
<script type="text/javascript">//<![CDATA[
if (!window.vaadin) alert("Failed to load the bootstrap javascript: ./../VAADIN/vaadinBootstrap.js?v=7.7.9");
vaadin.initApplication("obpui-105541713",{"theme":"iso-red","versionInfo":{"vaadinVersion":"7.7.9"},"widgetset":"org.iso.obp.ui.widgetset.applicationWidgetset","widgetsetReady":true,"comErrMsg":{"caption":"Communication problem","message":"Take note of any unsaved data, and <u>click here</u> or press ESC to continue.","url":null},"authErrMsg":{"caption":"Authentication problem","message":"Take note of any unsaved data, and <u>click here</u> or press ESC to continue.","url":null},"sessExpMsg":{"caption":"Session Expired","message":"Take note of any unsaved data, and <u>click here</u> or press ESC key to continue.","url":null},"vaadinDir":"./../VAADIN/","standalone":true,"heartbeatInterval":300,"serviceUrl":"."});
//]]></script>
</body>
</html>
Any idea on how to copy the contents of the page using Servoy? How can I emulate the behavior of the Firefox save as text menu command? Thank you for any suggestion.