perldoc CGI See section : GENERATING A REDIRECTION HEADER <my_paste>
GENERATING A REDIRECTION HEADER print $query->redirect('http://somewhere.else/in/movie/land'); Sometimes you don't want to produce a document yourself, but simply redirect the browser elsewhere, perhaps choosing a URL based on the time of day or the identity of the user. The redirect() function redirects the browser to a different URL. If you use redirection like this, you should not print out a header as well. One hint I can offer is that relative links may not work correctly when you generate a redirection to another document on your site. This is due to a well-intentioned optimization that some servers use. The solution to this is to use the full URL (including the http: part) of the document you are redirecting to. You can also use named arguments: print $query->redirect(-uri=>'http://somewhere.else/in/movie/land', -nph=>1); The -nph parameter, if set to a true value, will issue the correct headers to work with a NPH (no-parse-header) script. This is important to use with certain servers, such as Microsoft Internet Explorer, which expect all their scripts to be NPH. </my_paste> José. -----Original Message----- From: Amit Sharma [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 7:01 AM To: [EMAIL PROTECTED] Subject: Help Required Hi, I have written one cgi script which gets the input from user and modify one xml file and I got this string as output http://prv-arweb3.Test.com/Remedy/servlet/Servlet?URL=http://asharma.Test.co m/Query1.xml&TURL=http://asharma.Test.com/Remedy1.xsl Here I am getting modified Query1.xml as input and I have to give this command in address bar to get the desired result. Could you please help me to let me know how directly through CGi I can go to the address mentioned above without copying and pasting in address bar. This address will always remain the same only the xml file will change. General Question: In my cgi script I want to open some site let us suppose http://www.google.com How can I do that. Regards, Amit. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] **** DISCLAIMER **** "This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer". Thank you for your cooperation. For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]