<?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: Dynamically get host and port in webscript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/dynamically-get-host-and-port-in-webscript/m-p/255828#M208958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a million Andrea, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The resources you have provided are extremely useful. Further I'll post the solution that I have provided.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2012 13:48:00 GMT</pubDate>
    <dc:creator>alejandrogarcia</dc:creator>
    <dc:date>2012-12-06T13:48:00Z</dc:date>
    <item>
      <title>Dynamically get host and port in webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamically-get-host-and-port-in-webscript/m-p/255826#M208956</link>
      <description>Hi folks, I'm wondering how could I get the host and port of the server where Share is running in, within a JS webscript. I have been searching in Google and in the forums but I didn't find anything useful. I was also searching in the Share's source code with the same result. Is it possible?I've als</description>
      <pubDate>Wed, 05 Dec 2012 16:59:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamically-get-host-and-port-in-webscript/m-p/255826#M208956</guid>
      <dc:creator>alejandrogarcia</dc:creator>
      <dc:date>2012-12-05T16:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically get host and port in webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamically-get-host-and-port-in-webscript/m-p/255827#M208957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;take a look to this topic &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?f=48&amp;amp;t=35690" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/en/viewtopic.php?f=48&amp;amp;t=35690&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Generally using this approach could be useful &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts#Global_and_Scoped_Config" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts#Global_and_Scoped_Config&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Another possible way here &lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/13491604/how-to-retrieve-the-hostname-from-an-alfresco-share-webscript" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/13491604/how-to-retrieve-the-hostname-from-an-alfresco-share-webscript&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 08:41:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamically-get-host-and-port-in-webscript/m-p/255827#M208957</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2012-12-06T08:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically get host and port in webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamically-get-host-and-port-in-webscript/m-p/255828#M208958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a million Andrea, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The resources you have provided are extremely useful. Further I'll post the solution that I have provided.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 13:48:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamically-get-host-and-port-in-webscript/m-p/255828#M208958</guid>
      <dc:creator>alejandrogarcia</dc:creator>
      <dc:date>2012-12-06T13:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically get host and port in webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamically-get-host-and-port-in-webscript/m-p/255829#M208959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally I have solved the problem by a better approach such I don't need to get either host or port. I'm performing some customization to the WebView dashlet to make it automatically configurable, that's the reason of my needs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apart of that, I think that the definition of host and port as global config (&lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts#Global_and_Scoped_Config" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts#Global_and_Scoped_Config&lt;/A&gt;&lt;SPAN&gt;) and the retrieve them in the webscript could work and would be the best in my opinion. Furthermore, host and port could be dynamically replaced in config file with ant tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope if helps others. Anybody interested or regarding question feel free to ask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 16:36:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamically-get-host-and-port-in-webscript/m-p/255829#M208959</guid>
      <dc:creator>alejandrogarcia</dc:creator>
      <dc:date>2012-12-06T16:36:39Z</dc:date>
    </item>
  </channel>
</rss>

