Solved

Redirecting a Perl Page To ASP/ASP.Net Page

Posted on 2004-04-12
3
170 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…

685 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