Gossamer Forum
Home : General : Perl Programming :

Re: [newage24] print "Location: http://yahoo.com\n" ; doesn't worl on NT - pls help !

Quote Reply
Re: [newage24] print "Location: http://yahoo.com\n" ; doesn't worl on NT - pls help ! In reply to
I very much doubt it ever worked on any server Wink

The problem with you code is you only used 1 \n. For this feature you need to use 2, \n\n.

Try;

print "Location: $url \n\n";

also, remember NOT to print any other content-type headers before it, as that will cause the redirect to just be printed, or in many cases cause a 500 Internal Server Error.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread print "Location: http://yahoo.com\n" ; doesn't worl on NT - pls help ! newage24 2131 Jan 7, 2002, 10:47 PM
Thread Re: [newage24] print "Location: http://yahoo.com\n" ; doesn't worl on NT - pls help !
Andy 1910 Jan 7, 2002, 11:51 PM
Post Re: [AndyNewby] print "Location: http://yahoo.com\n" ; doesn't worl on NT - pls help !
sponge 1904 Jan 8, 2002, 12:21 AM