Solved

Redirecting a Perl Page To ASP/ASP.Net Page

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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can Oracle Client 11.2.0.2.0 work with an Oracle 12c Database? 5 153
crawling gofundme 4 126
Executing multiple sybase statements in perl dbi 2 93
Perl Untar File 1 45
I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

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