<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Debugging on A Blog on Oracle and Stuff</title>
    <link>https://enesi.no/tag/debugging/</link>
    <description>Recent content in Debugging on A Blog on Oracle and Stuff</description>
    <image>
      <title>A Blog on Oracle and Stuff</title>
      <url>https://enesi.no/images/enesi_logo.jpg</url>
      <link>https://enesi.no/images/enesi_logo.jpg</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>Enesi Consulting AS</copyright>
    <lastBuildDate>Wed, 23 Nov 2022 18:09:59 +0100</lastBuildDate>
    <atom:link href="https://enesi.no/tag/debugging/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Show CGI Environment in APEX</title>
      <link>https://enesi.no/2022/11/show-cgi-environment-in-apex/</link>
      <pubDate>Wed, 23 Nov 2022 18:09:59 +0100</pubDate>
      <guid>https://enesi.no/2022/11/show-cgi-environment-in-apex/</guid>
      <description>&lt;p&gt;This simple tip may help you troubleshooting integrations in APEX and ORDS.&lt;/p&gt;
&lt;h2 id=&#34;show-cgi-environment-in-apex&#34;&gt;Show CGI Environment in APEX&lt;/h2&gt;
&lt;p&gt;I have been struggling with integration issues in APEX lately. Listing out the CGI environment helped to identify the probable cause.&lt;/p&gt;
&lt;p&gt;Just create a region of type Dynamic Content and add this code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;begin
   OWA_UTIL.PRINT_CGI_ENV;
end;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It will list values for HTTP_SERVER, HTTP_PORT, etc. If the configuration on your reverse proxy is wrong, it will likely show up here with values that will not work in the external world.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>This simple tip may help you troubleshooting integrations in APEX and ORDS.</p>
<h2 id="show-cgi-environment-in-apex">Show CGI Environment in APEX</h2>
<p>I have been struggling with integration issues in APEX lately. Listing out the CGI environment helped to identify the probable cause.</p>
<p>Just create a region of type Dynamic Content and add this code:</p>
<pre><code>begin
   OWA_UTIL.PRINT_CGI_ENV;
end;
</code></pre>
<p>It will list values for HTTP_SERVER, HTTP_PORT, etc. If the configuration on your reverse proxy is wrong, it will likely show up here with values that will not work in the external world.</p>
<figure>
    <img loading="lazy" src="/images/dynamic-region.png"
         alt="Screen capture from APEX."/> 
</figure>

]]></content:encoded>
    </item>
  </channel>
</rss>
