<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can vRO help to test a website page is running in VMware Aria Automation Orchestrator Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Can-vRO-help-to-test-a-website-page-is-running/m-p/2912835#M25784</link>
    <description>&lt;P&gt;You need to import the certificate first. You have a workflow for that. But, why an action instead of a workflow scheduled to run every 10 minutes or so?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2022 12:18:19 GMT</pubDate>
    <dc:creator>bdamian</dc:creator>
    <dc:date>2022-06-06T12:18:19Z</dc:date>
    <item>
      <title>Can vRO help to test a website page is running</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Can-vRO-help-to-test-a-website-page-is-running/m-p/2912742#M25783</link>
      <description>&lt;P&gt;I would like to write a vro script that continuously checks if a website is up and running all the time.&amp;nbsp; Tried with vRO 8 but I got certificate error.&amp;nbsp; Anyone has already did this?&amp;nbsp; If so, could you share the idea/code?&amp;nbsp; I have tried with http get object in vRO, it did not work.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//Auto-generated&amp;nbsp;script&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;urlObject&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;URL&lt;/SPAN&gt;&lt;SPAN&gt;(url);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;result&amp;nbsp;=&amp;nbsp;urlObject.getContent()&amp;nbsp;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 05 Jun 2022 11:00:11 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Can-vRO-help-to-test-a-website-page-is-running/m-p/2912742#M25783</guid>
      <dc:creator>lurims</dc:creator>
      <dc:date>2022-06-05T11:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can vRO help to test a website page is running</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Can-vRO-help-to-test-a-website-page-is-running/m-p/2912835#M25784</link>
      <description>&lt;P&gt;You need to import the certificate first. You have a workflow for that. But, why an action instead of a workflow scheduled to run every 10 minutes or so?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 12:18:19 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Can-vRO-help-to-test-a-website-page-is-running/m-p/2912835#M25784</guid>
      <dc:creator>bdamian</dc:creator>
      <dc:date>2022-06-06T12:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can vRO help to test a website page is running</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Can-vRO-help-to-test-a-website-page-is-running/m-p/2912997#M25787</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;You could use a "TransientHost" from the RESTHostManger:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var http_host = "https://yourhost.fq.dn"
var http_uri = "index.html"

var restHost = RESTHostManager.createHost("dynamicRequest")
restHost.setAutoUrlRedirect(true)
var http_resthost = RESTHostManager.createTransientHostFrom(restHost)

http_resthost.url = http_host
http_resthost.connectionTimeout = 900
http_resthost.operationTimeout = 900
//ignore cert
http_resthost.hostVerification = false

var method = "GET"
var body = ""
var request = http_resthost.createRequest(method, http_uri, body)
//example - add header
//request.setHeader("Content-Type", "application/json")

var response = request.execute()
var result = response.contentAsString

return result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 07:58:43 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Can-vRO-help-to-test-a-website-page-is-running/m-p/2912997#M25787</guid>
      <dc:creator>rwk1982</dc:creator>
      <dc:date>2022-06-07T07:58:43Z</dc:date>
    </item>
  </channel>
</rss>

