Solved

Redirecting a Perl Page To ASP/ASP.Net Page

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now