Solved

Redirecting a Perl Page To ASP/ASP.Net Page

Posted on 2004-04-12
3
168 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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Syslog text file into database or into .CSV 19 155
perl search and replace 6 171
Perl output collect 7 67
Problem with one substitution modifying another 3 73
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…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…

809 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