HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- csws2.1 perl cgi redir problem with exit()
Operating System - OpenVMS
1832641
Members
2752
Online
110043
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2006 05:49 AM
02-08-2006 05:49 AM
csws2.1 perl cgi redir problem with exit()
Hi,
I am using VMS V8.2, csws2.1 and csws_perl2.1.
Our own perl CGI scripts normally have if statements saying that if
this...do redirect to another URL and exit(), otherwise, continue to
display the form. These scripts used to work on CSWS1.3, now showing
"unexpect network read error, can't access start file...." on the
browser with csws2.1. I noticed that it is exit() that follows $query->redirect()
causes the trouble.
Test1.CGI (works):
use CGI;
$query =CGI->new();
print $query->redirect(-url=>"http://dymc.dymaxion.ca/cgi-bin/jy1.com");
TEST2.CGI (does not work).
use CGI;
$query =CGI->new();
print $query->redirect(-url=>"http://dymc.dymaxion.ca/cgi-bin/jy1.com");
exit();
I am using ModPerl::Registry for my perl CGIs. I understand that
exit() is actually ModPerl::Util::exit() which only exits the request
not the process, but I don't understand why it will affect my redirect to fail.
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.
Any help is appreciated.
June Young, Software Development bus: (902)422-1973 x144
Dymaxion Research Ltd., 5515 Cogswell St., fax: (902)421-1267
Halifax, Nova Scotia, B3J 1R2 Canada mailto: JYoung@dymaxion.ca
http://www.dymaxion.ca
I am using VMS V8.2, csws2.1 and csws_perl2.1.
Our own perl CGI scripts normally have if statements saying that if
this...do redirect to another URL and exit(), otherwise, continue to
display the form. These scripts used to work on CSWS1.3, now showing
"unexpect network read error, can't access start file...." on the
browser with csws2.1. I noticed that it is exit() that follows $query->redirect()
causes the trouble.
Test1.CGI (works):
use CGI;
$query =CGI->new();
print $query->redirect(-url=>"http://dymc.dymaxion.ca/cgi-bin/jy1.com");
TEST2.CGI (does not work).
use CGI;
$query =CGI->new();
print $query->redirect(-url=>"http://dymc.dymaxion.ca/cgi-bin/jy1.com");
exit();
I am using ModPerl::Registry for my perl CGIs. I understand that
exit() is actually ModPerl::Util::exit() which only exits the request
not the process, but I don't understand why it will affect my redirect to fail.
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.
Any help is appreciated.
June Young, Software Development bus: (902)422-1973 x144
Dymaxion Research Ltd., 5515 Cogswell St., fax: (902)421-1267
Halifax, Nova Scotia, B3J 1R2 Canada mailto: JYoung@dymaxion.ca
http://www.dymaxion.ca
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 07:40 AM
02-10-2006 07:40 AM
Re: csws2.1 perl cgi redir problem with exit()
As no reply here then try the VAMP site
http://www.issinoho.com:8080/phpbb2/
http://www.issinoho.com:8080/phpbb2/
____________________
Purely Personal Opinion
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2006 04:09 AM
07-28-2006 04:09 AM
Re: csws2.1 perl cgi redir problem with exit()
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.
I've submitted this issue to HP under case 3215622699
I've submitted this issue to HP under case 3215622699
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP