Loading ...
Sorry, an error occurred while loading the content.

Re: Redirection of perl script isnt working

Expand Messages
  • shanniknite
    It finally works. I just added www. Thanks for the help.
    Message 1 of 4 , Sep 3, 2008
    • 0 Attachment
      It finally works. I just added www. Thanks for the help.
      --- In perl-beginner@yahoogroups.com, "Charles K. Clarkson"
      <cclarkson@...> wrote:
      >
      > shanniknite wrote:
      >
      > : Im trying to redirect a perl/cgi script to an html file but its
      > : not working. Page displays an error and stays on cgi page.
      > [snip]
      >
      > What is the error that is displayed?
      >
      > I tested your redirect solution like this and it works fine
      > on an IIS server running perl 5.8.
      >
      >
      > #!/usr/bin/perl
      >
      > use strict;
      > use warnings;
      >
      > print "Location: http://www.google.com/\n\n";
      >
      > __END__
      >
      >
      > HTH,
      >
      > Charles K. Clarkson
      > --
      > Mobile Homes Specialist
      > Free Market Advocate
      > Web Programmer
      >
      > 254 968-8328
      >
      > http://www.clarksonenergyhomes.com/wordpress/about/
      >
    • MAJID AGHA AMINI
      hi dear i think , u must check nph in firstĀ  use CGI qw(-nph); ... From: shanniknite Subject: [PBML] Re: Redirection of perl script
      Message 2 of 4 , Sep 6, 2008
      • 0 Attachment
        hi dear
        i think , u must check nph in firstĀ 
        use CGI qw(-nph);


        --- On Wed, 9/3/08, shanniknite <shanniknite@...> wrote:

        From: shanniknite <shanniknite@...>
        Subject: [PBML] Re: Redirection of perl script isnt working
        To: perl-beginner@yahoogroups.com
        Date: Wednesday, September 3, 2008, 11:07 PM






        It finally works. I just added www. Thanks for the help.
        --- In perl-beginner@ yahoogroups. com, "Charles K. Clarkson"
        <cclarkson@. ..> wrote:
        >
        > shanniknite wrote:
        >
        > : Im trying to redirect a perl/cgi script to an html file but its
        > : not working. Page displays an error and stays on cgi page.
        > [snip]
        >
        > What is the error that is displayed?
        >
        > I tested your redirect solution like this and it works fine
        > on an IIS server running perl 5.8.
        >
        >
        > #!/usr/bin/perl
        >
        > use strict;
        > use warnings;
        >
        > print "Location: http://www.google com/\n\n";
        >
        > __END__
        >
        >
        > HTH,
        >
        > Charles K. Clarkson
        > --
        > Mobile Homes Specialist
        > Free Market Advocate
        > Web Programmer
        >
        > 254 968-8328
        >
        > http://www.clarkson energyhomes. com/wordpress/ about/
        >


















        [Non-text portions of this message have been removed]
      Your message has been successfully submitted and would be delivered to recipients shortly.