<?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: csws2.1 perl cgi redir problem with exit() in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/csws2-1-perl-cgi-redir-problem-with-exit/m-p/3727231#M52609</link>
    <description>As no reply here then try the VAMP site&lt;BR /&gt;&lt;A href="http://www.issinoho.com:8080/phpbb2/" target="_blank"&gt;http://www.issinoho.com:8080/phpbb2/&lt;/A&gt;</description>
    <pubDate>Fri, 10 Feb 2006 15:40:31 GMT</pubDate>
    <dc:creator>Ian Miller.</dc:creator>
    <dc:date>2006-02-10T15:40:31Z</dc:date>
    <item>
      <title>csws2.1 perl cgi redir problem with exit()</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/csws2-1-perl-cgi-redir-problem-with-exit/m-p/3727230#M52608</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am using VMS V8.2, csws2.1 and csws_perl2.1.&lt;BR /&gt;&lt;BR /&gt;Our own perl CGI scripts normally have if statements saying that if &lt;BR /&gt;this...do redirect to another URL and exit(), otherwise, continue to &lt;BR /&gt;display the form. These scripts used to work on CSWS1.3, now showing &lt;BR /&gt;"unexpect network read error, can't access start file...." on the &lt;BR /&gt;browser with csws2.1. I noticed that it is exit() that follows $query-&amp;gt;redirect() &lt;BR /&gt;causes the trouble. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Test1.CGI (works): &lt;BR /&gt;use CGI; &lt;BR /&gt;$query =CGI-&amp;gt;new(); &lt;BR /&gt;print $query-&amp;gt;redirect(-url=&amp;gt;"&lt;A href="http://dymc.dymaxion.ca/cgi-bin/jy1.com" target="_blank"&gt;http://dymc.dymaxion.ca/cgi-bin/jy1.com&lt;/A&gt;"); &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;TEST2.CGI (does not work). &lt;BR /&gt;use CGI; &lt;BR /&gt;$query =CGI-&amp;gt;new(); &lt;BR /&gt;print $query-&amp;gt;redirect(-url=&amp;gt;"&lt;A href="http://dymc.dymaxion.ca/cgi-bin/jy1.com" target="_blank"&gt;http://dymc.dymaxion.ca/cgi-bin/jy1.com&lt;/A&gt;"); &lt;BR /&gt;exit(); &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am using  ModPerl::Registry for my perl CGIs. I understand that &lt;BR /&gt;exit() is actually ModPerl::Util::exit() which only exits the request &lt;BR /&gt;not the process, but I don't understand why it will affect my redirect to fail. &lt;BR /&gt;&lt;BR /&gt;I do not want to change exit() to function return because the redir command can be wrapped in several level down function calls and we don't want to check a flag in each level which is quite messy.&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;June Young, Software Development                   bus: (902)422-1973 x144&lt;BR /&gt;Dymaxion Research Ltd., 5515 Cogswell St.,      fax: (902)421-1267&lt;BR /&gt;Halifax, Nova Scotia, B3J 1R2 Canada           mailto: JYoung@dymaxion.ca&lt;BR /&gt;&lt;A href="http://www.dymaxion.ca" target="_blank"&gt;http://www.dymaxion.ca&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Feb 2006 13:49:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/csws2-1-perl-cgi-redir-problem-with-exit/m-p/3727230#M52608</guid>
      <dc:creator>June Young</dc:creator>
      <dc:date>2006-02-08T13:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: csws2.1 perl cgi redir problem with exit()</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/csws2-1-perl-cgi-redir-problem-with-exit/m-p/3727231#M52609</link>
      <description>As no reply here then try the VAMP site&lt;BR /&gt;&lt;A href="http://www.issinoho.com:8080/phpbb2/" target="_blank"&gt;http://www.issinoho.com:8080/phpbb2/&lt;/A&gt;</description>
      <pubDate>Fri, 10 Feb 2006 15:40:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/csws2-1-perl-cgi-redir-problem-with-exit/m-p/3727231#M52609</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-02-10T15:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: csws2.1 perl cgi redir problem with exit()</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/csws2-1-perl-cgi-redir-problem-with-exit/m-p/3727232#M52610</link>
      <description>Yes, exit is supposed to get overriden. It works on linux with the identical version of mod_perl (1.999.211024). If you're looking for a rather ugly work around that avoids having to change exits to returns, see the attached sample script.&lt;BR /&gt;&lt;BR /&gt;I've submitted this issue to HP under case 3215622699 &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Jul 2006 11:09:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/csws2-1-perl-cgi-redir-problem-with-exit/m-p/3727232#M52610</guid>
      <dc:creator>Carl Karcher</dc:creator>
      <dc:date>2006-07-28T11:09:37Z</dc:date>
    </item>
  </channel>
</rss>

