Jan 30, 2009, 4:22 AM
Post #1 of 1
Check Http Request Headers
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;
print "status: 302\n";
print "location: http://news.bbc.co.uk\n";
print "Content-type: text/plain\n";
Go read the news
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.