CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: General Discussions: General Questions:
Check Http Request Headers

 



shezam
New User

Jan 30, 2009, 4:22 AM

Post #1 of 1 (2413 views)
Check Http Request Headers Can't Post

Hi Guys,

I have a test webserver, and based on what request headers i receive i want to end back a 302.

So i want to do the following;

#!/usr/bin/perl
print "status: 302\n";
print "location: http://news.bbc.co.uk\n";
print "Content-type: text/plain\n";
print "\n";
print <<"EOM";
Go read the news
EOM

as an example but only based on what request headers i receive. Any you guys know how to check for the headers or how i should do this. Help much appreciated. Thanks.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives