Solved

Redirecting a Perl Page To ASP/ASP.Net Page

Posted on 2004-04-12
3
174 Views
Last Modified: 2010-03-04
Hi All,
Can Anybody help me out on how to redirect from a perl page to ASP/ASP.Net Page. I have a perl script which perform some function and i want as the script is executed it should redirect to a ASP/ASP.Net Page with some query string. I need to know how can I accomplish this task.
I am using awstats(awstats.sourceforge.net) to see my site statistics and i wand to forward the bandwidth usage to ASP/ASP.Net page which is calculated through perl Script.
Any Help in this regard is higly appreciated in advance.

Jaffer Mumtaz
0
Comment
Question by:jaffer_mumtaz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 20

Accepted Solution

by:
jmcg earned 250 total points
ID: 10810908
Hi, Jaffer, and congratulations on asking your first question.

An ordinary redirect is pretty simple. It's just an HTTP header line in the response that looks like:

Location: http://host.domain.tld/path/to/target/ThePage.asp?querystring

If you're using CGI.pm (usually a good idea), you'd do something like:

my $url = 'http://host.domain.tld/path/to/target/ThePage.asp?querystring';
print $query->redirect( $url);

(that's not complete, standalone code). The implementation langage of the page at the other end of the redirect is not a relevant consideration. It could be Perl, it could be ASP, or it could be any other CGI implementation language.

If this isn't what you had in mind, please explain your problem in a bit more detail. You may be intending "forward" and "redirect" in some other sense than I've been able to interpret.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PERL get the value for query 4 163
Perl strange behaviour 5 79
grep that displays 4 lines above & 1 line below of what's found 10 88
Awk Question 2 136
On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question